Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xmh0511 committed May 31, 2019
1 parent a2050bd commit e137d16
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,10 @@ int main()
ws.write_string(message); //发送消息 ws.write_binary("xxx")用来写二进制类型的数据 || ws.write("xxx",opcode);
}).on("open", [](websocket& ws) {
std::cout << "open" << std::endl;
}).on("close",[](){
//balabala
});
server.router("/ws", event); //定义webscoket 路由
}
````

Expand Down

0 comments on commit e137d16

Please sign in to comment.