- opcode->optype INTEGERprocedure
- optype->opcode SYMBOLprocedure
Maps between opcodes and optypes:
opcode optype #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.