If the site uses a wss Protocol, can connect to it to send the request?

Hello. Always my programs communicate with other sites using get/post requests. But there was a website that establishes a connection with the browser through websoket, and further communication with the browser goes through it.
I need to give the site similar to the following message:
{"c":"trade","d":{"my":["730_13012940186","730_13012897175","730_13012696926","730_13012715994","730_13013097146"],"bot":[],"case":[],"botid":null,"left":596,"csrf":"8ce7277f"}}


Is it possible to do with node js? If Yes, then which module would you recommend?
And how do the connection? When establishing a connection we need cookies to pass+user agent+ something else?
Tried to Google, but the results explains how to create a connection with your server
June 10th 19 at 14:42
1 answer
June 10th 19 at 14:44
Use node.js + socket.io.
socket.io itself transmits the necessary data and maintains a connection with the client. You just use the built-in methods of reception and transmission of messages.
In the example of use there is a chat, see how it works, it will not take much time but will help to understand what was happening.

Find more questions by tags Node.jsWebSocket