How to read websocket response in linux shell

后端 未结 5 1936
既然无缘
既然无缘 2020-12-24 07:18

Writing a bash script to connect to GDAX\'s Websocket Feed at wss://ws-feed.gdax.com but curl doesn\'t seem to support this as I get

curl \"wss://ws-feed.gd         


        
5条回答
  •  爱一瞬间的悲伤
    2020-12-24 07:28

    Well, you can try to mimic the required headers to get some response using curl:

    • https://gist.github.com/htp/fbce19069187ec1cc486b594104f01d0 or
    • Linux Bash: How to open a websocket connection as client

    Also, there are other ways to communicate with a WebSocket server, e.g.

    • https://github.com/websockets/wscat
    • https://github.com/bwasti/webpipe
    • https://github.com/progrium/wssh

提交回复
热议问题