mxmbsocket/tests/Ratchet/Tests/Mock/Application.php
Chris Boden 32d9dda703 Stability
Added onError hook to observable interface
Handling errors in proper places, no longer a catchall
Temporarily throwing errors on all non-message HyBi-10 frames ("fixes" FF breaking everything)
2011-11-10 21:23:31 -05:00

20 lines
464 B
PHP

<?php
namespace Ratchet\Tests\Mock;
use Ratchet\SocketObserver;
use Ratchet\Server;
use Ratchet\Tests\Mock\Socket as MockSocket;
use Ratchet\SocketInterface;
class Application implements SocketObserver {
public function onOpen(SocketInterface $conn) {
}
public function onRecv(SocketInterface $from, $msg) {
}
public function onClose(SocketInterface $conn) {
}
public function onError(SocketInterface $conn, \Exception $e) {
}
}