As I underestand, I can create and run a wsserver like this, listening on port
$ws = new WsServer(new MyChat);
$ws->disableVersion(0); // old, bad, protocol version
// Make sure you're running this as root
$serverA = IoServer::factory(new HttpServer($ws),8088);
$serverA->run();
Also can run an IP Blacklist server as follow:
$blackList = new IpBlackList(new MyChat);
$blackList->blockAddress('74.125.226.46'); // Stop Google from connecting to our server
$serverB = IoServer::factory($blackList, 8080);
$serverB->run();
Also can run an OriginCheck server as follow:
$checkedApp = new OriginCheck(new MyHttpApp, array('localhost'));
$checkedApp->allowedOrigins[] = 'mydomain.com';
$server = IoServer::factory(new HttpServer($checkedApp));
$server->run();
But what if I need to implement ipblacklist or OriginCheck , inside WsServer ?
can any body give me a hint?