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';
}
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
public beginRequest ( $req, $upstream ) : SimpleRequest |
Résultat |
SimpleRequest |
Request. |
Called when the worker is ready to go.