feat: make rooms and sids public

Related: https://github.com/socketio/socket.io-adapter/issues/63
This commit is contained in:
Damien Arrachequesne
2021-01-14 23:56:30 +01:00
parent 4111013bc7
commit 313c5a9fb6

View File

@@ -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;
/**