Skip to content

five-on-it / apps/nakama/src / Initializer

Interface: Initializer ​

Defined in: apps/nakama/src/index.ts:65

What the module registers with Nakama at start.

Methods ​

registerRpc() ​

registerRpc(id, rpc): void

Defined in: apps/nakama/src/index.ts:75

Parameters ​

id ​

string

rpc ​

(ctx, logger, nk, payload) => string

Returns ​

void


registerRtBefore() ​

registerRtBefore(id, hook): void

Defined in: apps/nakama/src/index.ts:66

Parameters ​

id ​

string

hook ​

(ctx, logger, nk, envelope) => ChannelMessageEnvelope | null

Returns ​

void