GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - devfeel/longweb: Simple and easy go realtime-web gateway

BranchesTags
Open more actions menu

Latest commit

 

History

52 Commits
52 Commits

Folders and files

NameName
Last commit message
Last commit date
README
README
 
 
config
config
 
 
const
const
 
 
exception
exception
 
 
framework
framework
 
 
httpserver
httpserver
 
 
message
message
 
 
repository
repository
 
 
task
task
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
app.conf
app.conf
 
 
main.go
main.go
 
 
task.conf
task.conf
 
 
test.html
test.html
 
 
version.log
version.log
 
 

Repository files navigation

LongWeb

Simple and easy go realtime-web gateway

GoDoc Go Report Card

1. Install

go get -u github.com/devfeel/longweb

2. Features

  • 支持Websocket\longpoll,消灭浏览器兼容之痛
  • 支持http与https,ws与wss协议
  • 原有业务系统无痛接入
  • 支持公开与授权模式(token)
  • 支持配置化部署
  • 支持连接数据持久化,目前支持influxdb

 

3. 主要文件说明

  • httpseerver/handlers/wshandler 处理websocket请求
  • httpseerver/handlers/pollhandler 处理长轮询请求(用于不支持websocket的访问端)
  • httpseerver/handlers/apihandler 处理与后端业务系统的交互  
  • message/message 后端业务系统的消息接收、处理、推送
  • message/userclient 用户连接的抽象
  • message/usergroup 用户组别
  • 其中三层:app-》group-》client  

4. 应用场景

  • 原有常规http系统需要支持websocket等长连接功能,无需开发改造,对接该网关轻松实现
  • 实时在线用户数统计系统
  • 聊天室类应用
  • 用户行为实时监测及反馈系统

基于 github.com/devfeel/dotweb 实现

Contact Us

QQ-Group:193409346

About

Simple and easy go realtime-web gateway

Topics

dotwebgolongpollreal-webwebwebsocket

Resources

Readme
MIT license
Activity

Stars

106 stars

Watchers

7 watching

Forks

24 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.