title: Linux Bash: How to open a websocket connection as client
body: <p>I have created a Node.JS application that provides a web socket server (using <a href="https://www.npmjs.com/package/ws" rel="noreferrer">npm ws</a>). This websocket waits until a connection is established. Once a connection hits the server, the websocket executes a job. When the job is done, a message is sent over the socket, then the socket is being closed. 
  This socket works as expected; already tested it with another Node.JS script.</p>
  
  <p>How can I <strong>connect to the web socket</strong> using only linux <strong>command line</strong> tools? 
  I already tried curl as described <a href="http://www.thenerdary.net/post/24889968081/debugging-websockets-with-curl" rel="noreferrer">here</a>. However, I can not find out how to connect properly to my websocket which runs at localhost:8088/socket/</p>
  
  <p><strong>Edit:</strong>
  My question has been identified as a possible duplicate of <a href="https://stackoverflow.com/questions/24704097/how-to-hit-the-websocket-endpoint">another</a> question. However, the linked question only asks if there is a way to do it with curl. I'd be glad to see any solution which works on bash. Also, the answer to the linked question is a javascript file using autobahn.ws </p>