rfc6455/WsServerInterface.php
Chris Boden 1443a59724 [WebSocket] [WAMP] Sub-Protocols
Updated how Ratchet handles WebSocket sub-protocols
Broke out WsServerInterface to not extend MessageInterface;
Components will instead use Interface segregation principle
WAMP is now able to work without the developer having to
manually enable the WAMP sub-protocol
2012-05-12 22:42:56 -04:00

11 lines
364 B
PHP

<?php
namespace Ratchet\WebSocket;
interface WsServerInterface {
/**
* If any component in a stack supports a WebSocket sub-protocol return each supported in an array
* @return array
* @temporary This method may be removed in future version (note tha twill not break code, just make some code obsolete)
*/
function getSubProtocols();
}