Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoogleCloudPlatform/nodejs-docs-samples
/ getUser
Function
getUser
run/websockets/users.js:27–29 ·
view source on GitHub ↗
(id)
Source
from the content-addressed store, hash-verified
25
26
// Return user's name and chat room from socket ID
27
function
getUser(id) {
28
return
users.get(id) || {};
29
}
30
31
// Delete user record
32
function
deleteUser(id) {
Callers
2
deleteUser
Function · 0.85
app.js
File · 0.85
Calls
1
get
Method · 0.45
Tested by
no test coverage detected