curlwebsocket

How to read a websocket response with cURL


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.gdax.com"
curl: (1) Protocol "wss" not supported or disabled in libcurl

Solution

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

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