
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)
20 lines
464 B
PHP
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) {
|
|
}
|
|
} |