blob: 14863237b5916f316d6f4f46cd3c38c60f7b86d9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
<?php
namespace Ratchet;
interface MessageInterface {
/**
* Triggered when a client sends data through the socket
* @param \Ratchet\ConnectionInterface $from The socket/connection that sent the message to your application
* @param string $msg The message received
* @throws \Exception
*/
function onMessage(ConnectionInterface $from, $msg);
}
|