mxmbsocket/src/Ratchet/WebSocket/MessageCallableInterface.php
Chris Boden e3aecdf021 Alternative approach to binary messaging
A new interface the dev can implement that will pass a
Message object to the devs instance. The object has
properties regarding binary/text
2016-03-01 14:11:15 -05:00

9 lines
237 B
PHP

<?php
namespace Ratchet\WebSocket;
use Ratchet\ConnectionInterface;
use Ratchet\RFC6455\Messaging\MessageInterface;
interface MessageCallableInterface {
public function onMessage(ConnectionInterface $conn, MessageInterface $msg);
}