
Cleaned up a lot of the code Added API documentation Fixed some unit tests Much cleaning left to be done
20 lines
354 B
PHP
20 lines
354 B
PHP
<?php
|
|
namespace Ratchet;
|
|
|
|
interface SocketObserver {
|
|
/**
|
|
* @param SocketInterface
|
|
*/
|
|
function onOpen(SocketInterface $conn);
|
|
|
|
/**
|
|
* @param SocketInterface
|
|
* @param string
|
|
*/
|
|
function onRecv(SocketInterface $from, $msg);
|
|
|
|
/**
|
|
* @param SocketInterface
|
|
*/
|
|
function onClose(SocketInterface $conn);
|
|
} |