read-websocket ( -- obj opcode loop? )


Vocabulary
http.websockets

Inputs
None

Outputs
objan object
opcodean object
loop?an object


Definition


: read-websocket ( -- obj opcode loop? )
[
read1 [
7 clear-bit [
{
{ f ~quotation~ }
{ 0 ~quotation~ }
{ 1 ~quotation~ }
{ 2 ~quotation~ }
{ 8 ~quotation~ }
{ 9 ~quotation~ }
{ 10 ~quotation~ }
[ "fall-through" unimplemented-opcode ]
} case
] 1check
] [ f f f ] if*
] [ drop f f f ] recover ;