Details |
Last modification |
View Log
| RSS feed
| Rev |
Author |
Line No. |
Line |
| 3 |
liveuser |
1 |
<?php
|
|
|
2 |
namespace Ratchet;
|
|
|
3 |
|
|
|
4 |
interface MessageInterface {
|
|
|
5 |
/**
|
|
|
6 |
* Triggered when a client sends data through the socket
|
|
|
7 |
* @param \Ratchet\ConnectionInterface $from The socket/connection that sent the message to your application
|
|
|
8 |
* @param string $msg The message received
|
|
|
9 |
* @throws \Exception
|
|
|
10 |
*/
|
|
|
11 |
function onMessage(ConnectionInterface $from, $msg);
|
|
|
12 |
}
|