{ "agent": "Tungstenite", "behavior": "OK", "behaviorClose": "OK", "case": 243, "closedByMe": true, "createStats": true, "createWirelog": true, "description": "Send close with invalid close code 2000", "droppedByMe": true, "duration": 0, "expectation": "Clean close with protocol error code or drop TCP", "expected": { "OK": [] }, "expectedClose": { "closeCode": [ 1002 ], "closedByMe": true, "requireClean": false }, "failedByMe": false, "httpRequest": "GET /runCase?case=243&agent=Tungstenite HTTP/1.1\r\nHost: localhost:9001\r\nConnection: Upgrade\r\nUpgrade: websocket\r\nSec-WebSocket-Version: 13\r\nSec-WebSocket-Key: hjVZ3K7LG12RugI+mqooQQ==\r\nsec-websocket-extensions: permessage-deflate; client_max_window_bits\r\n\r\n", "httpResponse": "HTTP/1.1 101 Switching Protocols\r\nServer: AutobahnTestSuite/0.8.1-0.10.9\r\nX-Powered-By: AutobahnPython/0.10.9\r\nUpgrade: WebSocket\r\nConnection: Upgrade\r\nSec-WebSocket-Accept: K/LbX7NoXIkJyGxlx/IMV7Z0+xU=\r\n\r\n", "id": "7.9.8", "isServer": true, "localCloseCode": 2000, "localCloseReason": null, "received": [], "remoteCloseCode": 1002, "remoteCloseReason": "Protocol violation", "reportCompressionRatio": false, "reportTime": false, "result": "Actual events match at least one expected.", "resultClose": "Connection was properly closed", "rxFrameStats": { "8": 1 }, "rxOctetStats": { "26": 1, "257": 1 }, "started": "2020-09-07T18:44:02.140Z", "trafficStats": null, "txFrameStats": { "8": 1 }, "txOctetStats": { "4": 1, "206": 1 }, "wasClean": true, "wasCloseHandshakeTimeout": false, "wasNotCleanReason": null, "wasOpenHandshakeTimeout": false, "wasServerConnectionDropTimeout": false, "wirelog": [ [ "RO", [ 257, "474554202f72756e436173653f636173653d323433266167656e743d54756e677374656e69746520485454502f312e310d0a486f73743a206c6f63616c686f73 ..." ] ], [ "TO", [ 206, "485454502f312e312031303120537769746368696e672050726f746f636f6c730d0a5365727665723a204175746f6261686e5465737453756974652f302e382e ..." ], false ], [ "TF", [ 2, "0x07d0" ], 8, true, 0, null, null, null, false ], [ "TO", [ 4, "880207d0" ], false ], [ "KL", 1 ], [ "RO", [ 26, "88942e5034a32dba64d141245bc0413c14d5473f58c25a395bcd" ] ], [ "RF", [ 20, "0x03ea50726f746f636f6c2076696f6c6174696f6e" ], 8, true, 0, true, "2e5034a3" ] ] }