Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
97
function
getRoomFromDatabase(roomName) {
98
return
messageDb.find(messages => messages.room === roomName);
99
}
100
101
module.exports = {
102
getRoomFromCache,
Callers
1
getRoomFromCache
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected