chickadee » ws-client » optype->opcode

opcode->optype INTEGERprocedure
optype->opcode SYMBOLprocedure

Maps between opcodes and optypes:

opcodeoptype
#x0'continuation
#x1'text
#x2'binary
#x8'connection-close
#x9'ping
#xa'pong

Signals a composite condition of kind 'websocket 'exn if an unrecognised optype or opcode is supplied. The application is expected to redefine this procedure if it wishes to make use of reserved opcodes.