PHP 클래스 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';
}
파일 보기
프로젝트 열기: kakserpom/phpdaemon
공개 메소드들
메소드 |
설명 |
|
beginRequest ( $req, $upstream ) : SimpleRequest |
Creates Request. |
|
onReady ( ) : void |
Called when the worker is ready to go. |
|
메소드 상세
public beginRequest ( $req, $upstream ) : SimpleRequest |
리턴 |
SimpleRequest |
Request. |
Called when the worker is ready to go.