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

Function SPACETIMEDB_INIT

templates/basic-cpp/spacetimedb/src/lib.cpp:13–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12// Called when the module is initially published
13SPACETIMEDB_INIT(init, ReducerContext ctx)
14{
15 // Module initialization logic goes here
16 return Ok();
17}
18
19// Called every time a new client connects
20SPACETIMEDB_CLIENT_CONNECTED(identity_connected, ReducerContext ctx)

Callers

nothing calls this directly

Calls 1

OkFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…