
A new interface the dev can implement that will pass a Message object to the devs instance. The object has properties regarding binary/text
9 lines
237 B
PHP
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);
|
|
}
|