diff --git a/src/Ratchet/WebSocket/BinaryMessageInterface.php b/src/Ratchet/WebSocket/BinaryMessageInterface.php new file mode 100644 index 0000000..db28c0b --- /dev/null +++ b/src/Ratchet/WebSocket/BinaryMessageInterface.php @@ -0,0 +1,8 @@ +WebSocket->closing) { if (!($msg instanceof DataInterface)) { - $msg = new Frame($msg); + $msg = new Frame($msg, true, ((boolean)$isBinary ? Frame::OP_TEXT : Frame::OP_BINARY)); } $this->getConnection()->send($msg->getContents()); diff --git a/tests/autobahn/fuzzingclient-quick.json b/tests/autobahn/fuzzingclient-quick.json index 3023fb8..c92e805 100644 --- a/tests/autobahn/fuzzingclient-quick.json +++ b/tests/autobahn/fuzzingclient-quick.json @@ -7,6 +7,6 @@ ] , "cases": ["*"] - , "exclude-cases": ["1.2.*", "2.3", "2.4", "2.6", "9.2.*", "9.4.*", "9.6.*", "9.8.*"] + , "exclude-cases": [] , "exclude-agent-cases": {} }