Git Product home page Git Product logo

go-websocket-server's Introduction

go-websocket-server

Golang编写的WebSocket服务器,用于提供通用的房间管理、帧同步、状态同步等实时对战支持。

启动服务器

go run ./main.go 8888

HaxeAPI

https://github.com/rainyt/hxonline

功能列表

  • 用户管理
    • 登陆注册(使用自创建的唯一id+用户名登陆,这意味着不需要依赖用户数据,只要提供id识别码和用户名都可以登陆)
    • 更新自定义用户数据
  • 房间管理
    • 创建房间
    • 加入房间
    • 退出房间
    • 踢出房间(房主操作)
    • 房间锁定
    • 发送房间消息
    • 获取房间信息
    • 房间动态消息(离线、离开、加入、变更等)
    • 房间密码、人数限制
    • 更新房间自定义数据(房主操作)
    • 更新房间信息(房主操作)
    • 房间历史聊天记录
    • 快速加入房间
    • 获取房间列表
  • 帧同步
    • 上传帧数据
    • 房间下发帧数据
    • 启动帧同步
    • 停止帧同步
    • 获取指定区域的帧数据
  • 状态同步
    • 房间状态同步(全局数据同步,所有用户共享修改)
    • 用户状态同步(单个用户数据同步)
  • 匹配
    • 根据规则匹配
      • 可以使用字符串匹配验证
      • 可以使用整数范围匹配验证
      • 可以匹配所需的人数

go-websocket-server's People

Contributors

rainyt 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.