gows

command module
v0.0.0-...-36c3af2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

README

golang WebSocket消息推送服务

申明

  1. client.html和main.go只是我写的一个测试案例,主要用impl下面的代码

功能

  1. 维护所有在线链接
  2. 可以根据指定的key去快速定位链接进行推送消息
  3. 使用chan处理了线程安全问题
  4. 发送/接受消息量为千万级别 (unix内核有瓶颈)
  5. 增加了client.html websocket前端代码

使用

  1. 先执行 git clone https://github.com/bugfan/gows.git
  2. 进入gows目录 cd xxxx/gows
  3. 启动程序 go run main.go -debug=true -p=9000 // -debug参数指定是否将服务端日志打印出来,-p指定监听端口

容器化

  1. 切换到此目录 ,执行 docker build -t YourTag .

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL