socket.io
socket.io copied to clipboard
Chnage uri of created client
Discussed in https://github.com/socketio/socket.io/discussions/5291
Originally posted by mrafieefard February 13, 2025 Hello I am creating a react app that users should deploy their own socketio server and then specify their ip and port in the client app because the app should verify socket io connection without messing with events I need to change the uri I tried to create new instance of socket io client but if I do this all events will destroy and I can't define events again because the events will define on different files
I want someone help me to change uri of the current socketio client instance I also saw this discussion https://github.com/socketio/socket.io/discussions/4246#discussioncomment-1952661 but io doesn't have any uri option that I can change in fact at first there is no uri const.
Thank you