MCPcopy Create free account
hub / github.com/DeepNotesApp/DeepNotes / getRoom

Function getRoom

apps/collab-server/src/rooms.ts:75–87  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

73const rooms = new Map<string, Room>();
74
75export function getRoom(name: string) {
76 let room = rooms.get(name);
77
78 if (room != null) {
79 return room;
80 }
81
82 room = new Room(name);
83
84 rooms.set(name, room);
85
86 return room;
87}
88
89getSub().on('messageBuffer', (channelBuffer: Buffer, messageBuffer: Buffer) => {
90 const channelStr = bytesToText(channelBuffer);

Callers 1

setupMethod · 0.90

Calls 2

getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected