星期四, 5月 07, 2020

websocket library





websocket library:
  1. https://github.com/Theldus/wsServer/blob/master/README.md
    1. send_receive.html
    2. ./send_receive

Test by wscat:
  1. wscat -c ws://10.1.59.109:8080

Just check connection:
  1. 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/

沒有留言: