netty-socketio icon indicating copy to clipboard operation
netty-socketio copied to clipboard

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

Open thinktouch opened this issue 6 years ago • 5 comments

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

thinktouch avatar Nov 08 '18 11:11 thinktouch

the version 1.7.7 can help you.

DestinyInHand avatar Nov 15 '18 06:11 DestinyInHand

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

andriewski avatar Nov 20 '18 18:11 andriewski

1.7.13 also works

gsfuture avatar Jul 30 '19 06:07 gsfuture

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)?

gdaniel avatar Sep 20 '19 13:09 gdaniel

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.

dgswan avatar May 04 '23 11:05 dgswan