Giter Club home page Giter Club logo

gows's Introduction

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 .

gows's People

Contributors

bugfan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.