From 237615890d6eb84abc14cc8182c0ccd66fd02b76 Mon Sep 17 00:00:00 2001 From: Chris Boden Date: Tue, 1 Mar 2016 14:16:35 -0500 Subject: [PATCH] Remove edited API for sending binary (should pass message object instead) --- src/Ratchet/WebSocket/WsConnection.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ratchet/WebSocket/WsConnection.php b/src/Ratchet/WebSocket/WsConnection.php index 3c34c9f..d2d04ef 100644 --- a/src/Ratchet/WebSocket/WsConnection.php +++ b/src/Ratchet/WebSocket/WsConnection.php @@ -12,10 +12,10 @@ class WsConnection extends AbstractConnectionDecorator { /** * {@inheritdoc} */ - public function send($msg, $isBinary = false) { + public function send($msg) { if (!$this->WebSocket->closing) { if (!($msg instanceof DataInterface)) { - $msg = new Frame($msg, true, ((boolean)$isBinary ? Frame::OP_BINARY : Frame::OP_TEXT)); + $msg = new Frame($msg); } $this->getConnection()->send($msg->getContents());