Skip to content

一个基于libevent实现的小巧的websocket server

Notifications You must be signed in to change notification settings

sweetOranges/tiny_ws_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

tiny_ws_server

一个基于libevent实现的小巧的websocket server, 适合当ws微服务

用法

./ws_server 127.0.0.1 8080

编译

g++ -std=c++11 -o ws_server ws_server.cpp -I./include -L./lib -l:libevent.a

特性

  • 实现了http接口 /push 按照fd推送消息
  • 实现了http接口 /broadcast 广播消息
  • 实现了http接口 /state 查看内部状态

About

一个基于libevent实现的小巧的websocket server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages