@vttforge/core / SocketContext
Interface: SocketContext ​
What a handler is told about the message it is running for.
Properties ​
local ​
readonlylocal:boolean
True when this is the sender's own copy rather than a relayed message.
user ​
readonlyuser:UserLike|undefined
The sending user, looked up from the id the server supplied.
userId ​
readonlyuserId:string
That id. Empty string when this client sent the message itself.