websocket library:
- https://github.com/Theldus/wsServer/blob/master/README.md
- send_receive.html
- ./send_receive
Test by wscat:
- wscat -c ws://10.1.59.109:8080
Just check connection:
- curl --include \ --no-buffer \ --header "Connection: Upgrade" \ --header "Upgrade: websocket" \ --header "Host: example.com:80" \ --header "Origin: http://example.com:80" \ --header "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" \ --header "Sec-WebSocket-Version: 13" \ http://example.com:80/
沒有留言:
張貼留言