PHP Class PHPDaemon\SockJS\Examples\Simple

Pool:Servers\HTTP { listen "0.0.0.0"; port 8068; } Pool:Servers\WebSocket { listen "0.0.0.0"; port 8069; } SockJS\Examples\Simple } SockJS\Application } # AppResolver.php $uri = $req->attrs->server['DOCUMENT_URI']; if(mb_orig_strpos($uri, '/sockjspage/') === 0) { return 'SockJS\\Examples\\Simple'; } if(mb_orig_strpos($uri, '/sockjs/') === 0) { return 'SockJS\\Application'; }
Inheritance: extends PHPDaemon\Core\AppInstance
Datei anzeigen Open project: kakserpom/phpdaemon

Public Methods

Method Description
beginRequest ( $req, $upstream ) : SimpleRequest Creates Request.
onReady ( ) : void Called when the worker is ready to go.

Method Details

beginRequest() public method

Creates Request.
public beginRequest ( $req, $upstream ) : SimpleRequest
return SimpleRequest Request.

onReady() public method

Called when the worker is ready to go.
public onReady ( ) : void
return void