__construct() __construct(string $host = '127.0.0.1') Constructor, sets host and port to bind to. Parameters string $host Socket host to bind to, defaults to localhost
Handles() Handles(\PHP\WebSocket\SocketListener $app) : \Websocket 在这个函数之中添加应用程序逻辑 Parameters \PHP\WebSocket\SocketListener $app Returns \Websocket