TakahikoKawasaki / nv-websocket-client

High-quality WebSocket client implementation in Java.
Apache License 2.0
2.03k stars 292 forks source link

how to get session id to send messages #246

Open jiawade opened 1 year ago

jiawade commented 1 year ago

Hi, my websockt uri is: ws://192.168.0.1:19900/socket/?EIO=3&transport=websocket&sid=30101e05-abcc-41c5-b361-376a814fd580

If I want to send messages to the server, must hava a valid sid, so how to create connection and get the sid

My guess is to send an authentication token to the server when creating a connection, such as a Bearer type token

Does this library support my description