Skip to content
/ crab Public

支持超大连接数的websocket服务,灵感来着1m-go-websocket(1百万go websocket)

Notifications You must be signed in to change notification settings

widaT/crab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crab

golang写的websocket服务,支持超过连接数(实测12w+稳定连接,程序自带压测工具,感兴趣可以测试下)。

1m-go-websockets启发

usage

run

$ run cmd/server/server.go
#open a new terminal 
$ run cmd/client/client.go
#open a new terminal
$ curl -X POST -d "sn=no123456&msg=msg1" http://localhost:9333/send_msg
$ curl -X POST -d "channel=channel1&msg=broadcastinchannel" http://localhost:9333/broadcastinchannel
$ curl -X POST -d "msg=broadcastmsg" http://localhost:9333/broadcast

About

支持超大连接数的websocket服务,灵感来着1m-go-websocket(1百万go websocket)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published