Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 467 Bytes

README.md

File metadata and controls

20 lines (18 loc) · 467 Bytes

websocket client

1. 如何编译

  1. mkdir build
  2. cd build && cmake ..
  3. cmake --build . --target hello-server

2. 运行示例

tzy@LAPTOP-595ER4EN:~/websocket/build/bin$ ./hello-server 
connect websocket server success!!!
onmessage recv:hello server
hello world!!!!
write [hello world!!!!] success!!!!
onmessage recv:hello world!!!!
hello websocket!!!!!!
write [hello websocket!!!!!!] success!!!!
onmessage recv:hello websocket!!!!!!
^Cbyby!!!