mxmbsocket/lib/Ratchet/Protocol/WebSocket/AppInterface.php
Chris Boden cf3ba7c4ad Bug fixes
Ratchet Exception now accepts SocketInterface for better troubleshooting
WebSocket protocol calls onOpen on child app after handshake
Misc little bugs found
2011-11-09 10:55:45 -05:00

22 lines
582 B
PHP

<?php
namespace Ratchet\Protocol\WebSocket;
use Ratchet\SocketObserver;
use Ratchet\SocketInterface;
/**
* @todo App interfaces this (optionally) if is meant for WebSocket
* @todo WebSocket checks if instanceof AppInterface, if so uses getSubProtocol() when doing handshake
*/
interface AppInterface extends SocketObserver {
/**
* @return string
*/
function getSubProtocol();
/**
* @param Ratchet\SocketInterface
* @param string
* @return Ratchet\Command\CommandInterface|null
*/
function onOpen(SocketInterface $conn, $headers);
}