xunwichtig Member Licensed User Longtime User Feb 5, 2015 #1 Hi, i build a websocket client and a server. the client sends a Chr(1) to the server. the server answers with Chr(2) and then the client disconnects the websocket connection with "protocol violation". The explicite answer frame are: 0x81 0x81 0x54 0x54 0x88 0xc2 0x56 so ... why closes the current Websocket Libary the connection? JimJim XUN
Hi, i build a websocket client and a server. the client sends a Chr(1) to the server. the server answers with Chr(2) and then the client disconnects the websocket connection with "protocol violation". The explicite answer frame are: 0x81 0x81 0x54 0x54 0x88 0xc2 0x56 so ... why closes the current Websocket Libary the connection? JimJim XUN
xunwichtig Member Licensed User Longtime User Feb 5, 2015 #2 I found the ... wrong. Autobahn-WebSocket dosn't allow Masking the Payload in the answer. https://github.com/tavendo/Autobahn.../src/de/tavendo/autobahn/WebSocketReader.java B4X: if (masked) { // currently, we don't allow this. need to see whats the final spec. throw new WebSocketException("masked server frame"); } JimJim XUN Upvote 0
I found the ... wrong. Autobahn-WebSocket dosn't allow Masking the Payload in the answer. https://github.com/tavendo/Autobahn.../src/de/tavendo/autobahn/WebSocketReader.java B4X: if (masked) { // currently, we don't allow this. need to see whats the final spec. throw new WebSocketException("masked server frame"); } JimJim XUN