mirror of
https://github.com/socketio/socket.io.git
synced 2026-01-13 08:57:59 -05:00
feat: make rooms and sids public
Related: https://github.com/socketio/socket.io-adapter/issues/63
This commit is contained in:
@@ -18,8 +18,8 @@ export interface BroadcastOptions {
|
||||
}
|
||||
|
||||
export class Adapter extends EventEmitter {
|
||||
protected rooms: Map<Room, Set<SocketId>> = new Map();
|
||||
protected sids: Map<SocketId, Set<Room>> = new Map();
|
||||
public rooms: Map<Room, Set<SocketId>> = new Map();
|
||||
public sids: Map<SocketId, Set<Room>> = new Map();
|
||||
private readonly encoder;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user