WebSocket 服务器类
$wss : boolean
是否为 wss 服务
$https : boolean
是否为 https 服务
$http2 : boolean
是否为 http2 服务
isSSL() : boolean
isHttps() : boolean
isHttp2() : boolean
createServer() : void
创建 swoole 服务器对象
createSubServer() : void
从主服务器监听端口,作为子服务器
getServerInitConfig() : array
获取服务器初始化需要的配置
__bindEvents() : void
绑定服务器事件