Handbook
Glossary
parse-packet ( msgpack -- packet )
Vocabulary
msgpack
.
rpc
.
private
Inputs
msgpack
an
object
Outputs
packet
an
object
Definition
USING:
combinators
kernel
msgpack.rpc
sequences
;
IN:
msgpack.rpc.private
:
parse-packet
( msgpack -- packet )
check-array
dup
first
{
{
0
[
make-request
]
}
{
1
[
make-response
]
}
{
2
[
make-notification
]
}
[
drop
invalid-packet
]
}
case
;