mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-02-25 17:50:55 +08:00
支持WebSocket协议
This commit is contained in:
@@ -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服务器
|
||||
|
||||
Reference in New Issue
Block a user