MCPcopy 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
27function getUser(id) {
28 return users.get(id) || {};
29}
30
31// Delete user record
32function deleteUser(id) {

Callers 2

deleteUserFunction · 0.85
app.jsFile · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected