mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +08:00
支持WebSocket协议
This commit is contained in:
parent
05e6d32576
commit
44914681e1
@ -113,7 +113,7 @@ int main(int argc,char *argv[]){
|
||||
|
||||
//开启http服务器
|
||||
TcpServer::Ptr httpSrv(new TcpServer());
|
||||
httpSrv->start<HttpSession>(mINI::Instance()[Config::Http::kPort]);//默认80
|
||||
httpSrv->start<EchoWebSocketSession>(mINI::Instance()[Config::Http::kPort]);//默认80
|
||||
|
||||
#ifdef ENABLE_OPENSSL
|
||||
//如果支持ssl,还可以开启https服务器
|
||||
|
Loading…
Reference in New Issue
Block a user