Currently I am using Socket.io connection in my application. Below is my server socket.io code.
const SocketOptions = {
pingTimeout: 60000,
maxHttpBufferSize: 1024 *XXX*XXX
transports: [ "polling", "websocket"]
}
const io = socket.io( MY_SERVER, SocketOptions )
Currently, I need to set "path" of the server option on runtime means dynamically. My question is below.
I would be helpful if anyone help me to solve this. Thanks in advance.