I hope this the right place to post this. But im sorely missing the ability to
remove an uri handler at runtime.
What version of the product are you using? On what operating system?
1.0RC, linux
Please provide any additional information below.
filename : websocket.server.php
class : WebSocketServer
/**
* Unassociate a request uri to a IWebSocketResourceHandler.
*
* @param string $script For example 'handler1' to capture request with URI '/handler1/'
* @param $disconnectUsers if true, disconnect users assosiated to handler.
*/
public function removeUriHandler($script, $disconnectUsers = true){
if ( empty($this->uriHandlers[$script]) ) return false;
$handler = $this->uriHandlers[$script];
unset( $this->uriHandlers[$script] );
if ($disconnectUsers) foreach($handler->getConnections() as $user){
$handler->removeConnection($user);
$user->disconnect();
}
return $handler;
}
Original issue reported on code.google.com by nox...@gmail.com on 20 Feb 2012 at 2:48
Original issue reported on code.google.com by
nox...@gmail.com
on 20 Feb 2012 at 2:48