Leaf
GitHub
Preparing search index...
@muni-town/leaf
decodeClientMessage
Function decodeClientMessage
decodeClientMessage
(
msg
:
Uint8Array
,
)
:
|
undefined
|
{
entityId
:
`
leaf:
${
string
}
`
;
type
:
"unsubscribe"
}
|
{
entityId
:
`
leaf:
${
string
}
`
;
snapshot
:
Uint8Array
<
ArrayBufferLike
>
;
type
:
"subscribe"
;
}
|
{
entityId
:
`
leaf:
${
string
}
`
;
type
:
"sendUpdate"
;
update
:
Uint8Array
<
ArrayBufferLike
>
;
}
Decode a binary client message.
Parameters
msg
:
Uint8Array
Returns
|
undefined
|
{
entityId
:
`
leaf:
${
string
}
`
;
type
:
"unsubscribe"
}
|
{
entityId
:
`
leaf:
${
string
}
`
;
snapshot
:
Uint8Array
<
ArrayBufferLike
>
;
type
:
"subscribe"
;
}
|
{
entityId
:
`
leaf:
${
string
}
`
;
type
:
"sendUpdate"
;
update
:
Uint8Array
<
ArrayBufferLike
>
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
GitHub
Leaf
Loading...
Decode a binary client message.