go-socket.io icon indicating copy to clipboard operation
go-socket.io copied to clipboard

Socket Join Rooms

Open onlylin opened this issue 5 years ago • 1 comments

1、Is socket OnConnect will join a default room? 2、When a socket connection join room id 2 and call conn.Rooms() print [1,2] and another socket connection join room id 3 and call conn.Rooms() print [2,3]. I am confused that when a new socket connection join a new room, First, it will be join a existing room, then join a new room.

onlylin avatar Oct 29 '20 03:10 onlylin

  1. Is socket OnConnect will join a default room?

yes - default room is a main and - namespace - "/"

it will be join a existing room, then join a new room.

Oh... damn, it is bug

sshaplygin avatar Apr 14 '21 08:04 sshaplygin