How to read websocket response in linux shell

后端 未结 5 1947
既然无缘
既然无缘 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:50

    You can connect to your server using Telnet also

         telnet 120.22.37.128 6870
    

    Once you connect you can send request in Json format

         {"requestType":"hi"}     
    

    Here 6870 is port port and to open port you need to run

         sudo ufw allow 6870 
    

    And to check pm2 logs you required to use below command

        pm2 logs 0
    

    Hope this hepls.

提交回复
热议问题