MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/nodejs-docs-samples / getRoomFromDatabase

Function getRoomFromDatabase

run/websockets/redis.js:97–99  ·  view source on GitHub ↗
(roomName)

Source from the content-addressed store, hash-verified

95
96// Query the example database for messages for a specific room
97function getRoomFromDatabase(roomName) {
98 return messageDb.find(messages => messages.room === roomName);
99}
100
101module.exports = {
102 getRoomFromCache,

Callers 1

getRoomFromCacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected