mrniko / netty-socketio

Socket.IO server implemented on Java. Realtime java framework
Apache License 2.0
6.82k stars 1.65k forks source link

If I want my app working in multiple tabs of browser at the same time, Which configuration can support this. thanks. #617

Open thinktouch opened 6 years ago

thinktouch commented 6 years ago

Originally posted by @StereoApp in https://github.com/mrniko/netty-socketio/commit/9ccdb36019e1ca981308c4456963c9ef75d82f56#commitcomment-30444681

DestinyInHand commented 6 years ago

the version 1.7.7 can help you.

andriewski commented 5 years ago

Yeap. I had the same problem. With 1.7.7 version the problem has been solved :)

gsfuture commented 5 years ago

1.7.13 also works

gdaniel commented 5 years ago

1.7.17 doesn't: if I have 2 tabs the 2 socketIOClient.getSessionId() calls will return the same value.

I see on the tracker that there has been many discussions about this, what is the expected behavior (1 sessionId/tab or 1 sessionId for all the tabs)?

dgswan commented 1 year ago

I hope it will be useful for others facing the same issue. One can use com.corundumstudio.socketio.Configuration#setRandomSession to support multiple tabs. Please see https://github.com/mrniko/netty-socketio/issues/593 and https://github.com/mrniko/netty-socketio/pull/630.