diff --git a/src/Ratchet/WebSocket/Version/RFC6455.php b/src/Ratchet/WebSocket/Version/RFC6455.php index 23e166cf..fe37acbb 100644 --- a/src/Ratchet/WebSocket/Version/RFC6455.php +++ b/src/Ratchet/WebSocket/Version/RFC6455.php @@ -154,6 +154,8 @@ public function onMessage(ConnectionInterface $from, $data) { return $from->close($frame::CLOSE_BAD_PAYLOAD); } + $frame->unMaskPayload(); + return $from->close($frame); break; case $frame::OP_PING: