+-+------+---------+-+---------+ |F|xxx(3)|opcode(4)|R|len(7) | +-+------+---------+-+---------+ OPCODES 0 - cont 1 - close 2 - ping 3 - pong 4 - text 5 - binary
18861887188818891890189118921893189418951896
WebSocketContextImpl webSocket; if (isMasked) webSocket = new WebSocketContextImpl(this, _response, listener, new MaskedFrameInputStream()); else webSocket = new WebSocketContextImpl(this, _response, listener, new UnmaskedFrameInputStream()); SocketLinkDuplexController controller = _request.startDuplex(webSocket);