Skip to content

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

Function: beforeChannelMessageSend() ​

beforeChannelMessageSend(ctx, logger, nk, envelope): ChannelMessageEnvelope | null

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

The hook before a client's channel message: a game room's goes through the moderation, a hidden one is dropped.

Parameters ​

ctx ​

Context

logger ​

Logger

nk ​

Nakama

envelope ​

ChannelMessageEnvelope

Returns ​

ChannelMessageEnvelope | null