Formatting, removed flash check
This commit is contained in:
parent
f5d148cdc4
commit
c179d60e77
@ -87,22 +87,10 @@ class App {
|
||||
$policy->addAllowedAccess($httpHost, $port);
|
||||
$flashSock = new Reactor($loop);
|
||||
$this->flashServer = new IoServer($policy, $flashSock);
|
||||
|
||||
//check if another App is already running a flash policy server on 843
|
||||
$test = @fsockopen('127.0.0.1', 843, $errno, $errstr, 5);
|
||||
|
||||
//if not start a flash policy serever
|
||||
if(is_resource($test) === false){
|
||||
$policy = new FlashPolicy;
|
||||
$policy->addAllowedAccess($httpHost, 80);
|
||||
$policy->addAllowedAccess($httpHost, $port);
|
||||
$flashSock = new Reactor($loop);
|
||||
$this->flashServer = new IoServer($policy, $flashSock);
|
||||
|
||||
if (80 == $port) {
|
||||
$flashSock->listen(843, '0.0.0.0');
|
||||
} else {
|
||||
fclose($test);
|
||||
trigger_error('flash socket server already running on 843', E_USER_NOTICE);
|
||||
$flashSock->listen(8843);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -107,7 +107,6 @@ class ServerProtocol implements MessageComponentInterface, WsServerInterface {
|
||||
$json = $json[0];
|
||||
}
|
||||
|
||||
//procURI should be un prefixed
|
||||
$this->_decorating->onCall($from, $callID, $from->getUri($procURI), $json);
|
||||
break;
|
||||
|
||||
|
@ -77,7 +77,6 @@ class WampConnection extends AbstractConnectionDecorator {
|
||||
|
||||
/**
|
||||
* Get the full request URI from the connection object if a prefix has been established for it
|
||||
* Compliant with WAMP Spec for curie URIs
|
||||
* @param string $uri
|
||||
* @return string
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user