socketio / socket.io-client-java

Full-featured Socket.IO Client Library for Java, which is compatible with Socket.IO v1.0 and later.
https://socketio.github.io/socket.io-client-java/installation.html
Other
5.31k stars 969 forks source link

how to get session id to send messages #738

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