Skip to content

@vttforge/core / SocketContext

Interface: SocketContext

What a handler is told about the message it is running for.

Properties

local

readonly local: boolean

True when this is the sender's own copy rather than a relayed message.


user

readonly user: UserLike | undefined

The sending user, looked up from the id the server supplied.


userId

readonly userId: string

That id. Empty string when this client sent the message itself.

MIT licensed.