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
Afficher le fichier Open project: kakserpom/phpdaemon

Méthodes publiques

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

Method Details

beginRequest() public méthode

Creates Request.
public beginRequest ( $req, $upstream ) : SimpleRequest
Résultat SimpleRequest Request.

onReady() public méthode

Called when the worker is ready to go.
public onReady ( ) : void
Résultat void