Opcode defines the interpretation of "Payload data". If an unknown opcode is received, the receiving endpoint’s WebSocket connection will fail.
;; check if it's a continuation frame (is-continue-frame? opcode) ;; check if it's text frame (is-text-frame? opcode) ;; check if it's binary frame (is-binary-frame? opcode) ;; check if it's control frame (is-control-frame? opcode) (is-non-control-frame? opcode) ;; websocket requires closing (is-close-frame? opcode) ;; check if it's a ping frame (is-ping-frame? opcode) ;; check if it's a pong frame (is-pong-frame? opcode) ;; %xB-F are reserved for further control frames (is-reserved-frame? opcode)