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';
}
显示文件
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
public beginRequest ( $req, $upstream ) : SimpleRequest |
return |
SimpleRequest |
Request. |
Called when the worker is ready to go.