支持WebSocket协议

This commit is contained in:
xiongziliang 2018-09-26 23:12:36 +08:00
parent 05e6d32576
commit 44914681e1

View File

@ -113,7 +113,7 @@ int main(int argc,char *argv[]){
//开启http服务器 //开启http服务器
TcpServer::Ptr httpSrv(new TcpServer()); 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 #ifdef ENABLE_OPENSSL
//如果支持ssl还可以开启https服务器 //如果支持ssl还可以开启https服务器