Closed zishang520 closed 2 years ago
BroadcastOptions.except is of type Set<SocketId> but computeExceptSids requires Set<Room>: https://github.com/socketio/socket.io-adapter/blob/b92d65cf9c6124930fac78349e2a0b847fe19f16/lib/index.ts#L288
Set<SocketId>
Set<Room>
BroadcastOptions.except: https://github.com/socketio/socket.io-adapter/blob/b92d65cf9c6124930fac78349e2a0b847fe19f16/lib/index.ts#L19
computeExceptSids: https://github.com/socketio/socket.io-adapter/blob/b92d65cf9c6124930fac78349e2a0b847fe19f16/lib/index.ts#L313
Good catch, thanks! This should be fixed by https://github.com/socketio/socket.io-adapter/commit/3410584a9322dd07145e3dc60b892c17d46c3aeb.
BroadcastOptions.except is of type
Set<SocketId>
but computeExceptSids requiresSet<Room>
: https://github.com/socketio/socket.io-adapter/blob/b92d65cf9c6124930fac78349e2a0b847fe19f16/lib/index.ts#L288BroadcastOptions.except: https://github.com/socketio/socket.io-adapter/blob/b92d65cf9c6124930fac78349e2a0b847fe19f16/lib/index.ts#L19
computeExceptSids: https://github.com/socketio/socket.io-adapter/blob/b92d65cf9c6124930fac78349e2a0b847fe19f16/lib/index.ts#L313