MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / User_OnInsert

Function User_OnInsert

templates/chat-console-cs/Program.cs:103–109  ·  view source on GitHub ↗
(EventContext ctx, User insertedValue)

Source from the content-addressed store, hash-verified

101
102/// Our `User.OnInsert` callback: if the user is online, print a notification.
103void User_OnInsert(EventContext ctx, User insertedValue)
104{
105 if (insertedValue.Online)
106 {
107 Console.WriteLine($"{UserNameOrIdentity(insertedValue)} is online");
108 }
109}
110
111/// Our `User.OnUpdate` callback:
112/// print a notification about name and status changes.

Callers

nothing calls this directly

Calls 1

UserNameOrIdentityFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…