is it possible to send a data when a websocket connection is opened
Don’t forget the query string. It’s valid in WebSocket url. new Websocket(‘ws://yoursite.com/path?a=1&b=2&c=3’) Then you can easily parse this url on server side to retrieve the data.