How to hit the WebSocket Endpoint?

后端 未结 6 1208
梦如初夏
梦如初夏 2021-02-05 22:52

I see that there is websocket endpoint which works out fins with Java tests. In logs I see

Connecting to: ws://127.0.0.1:8080/76f48a44-0af8-444c-ba97-3f1ed34af         


        
6条回答
  •  北海茫月
    2021-02-05 23:26

    This did the trick for me:

    $ curl -i -N -H "Connection: Upgrade" -H "Upgrade: websocket" -H "Host: echo.websocket.org" -H "Origin: http://www.websocket.org" http://echo.websocket.org
    

    from: http://www.thenerdary.net/post/24889968081/debugging-websockets-with-curl

提交回复
热议问题