SKILL

edgegap-colyseus

Colyseus + Edgegap: host a Colyseus (Node.js) multiplayer game on Edgegap with one dedicated server per match, near its players, that stops itself, end to end. Load this before using any Edgegap MCP tool on a Colyseus project (colyseus or @colyseus/* in package.json, Room classes with onJoin/onLeave, defineServer, app.config.ts, colyseus.js, @colyseus/sdk, the Colyseus Unity, Godot, Cocos Creator, Defold, GameMaker or Haxe SDKs). It has templates verified on Edgegap: a lifecycle module (self-stop on no join, empty server or match end), a Dockerfile, the WS + TLS Upgrade app version, a direct deploy script, a matchmaker config, and matchmaker clients for browser JS/TS, Cocos Creator, Unity and Godot, plus the pitfalls: 502 on a fresh server, wss by FQDN, CORS origins, exposed playground. Use for "host my Colyseus server", "Colyseus on Edgegap", "replace Colyseus Cloud", "one server per match", "Find Match with Colyseus", or debugging Colyseus deployments. Manus games: edgegap-manus.

原文 · 译文尚未补齐

适用对象:对象待分类。自动收录 · 待核查。

原作者说明节选

从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。

查看英文原文

原文涵盖的主题

  • Edgegap for Colyseus games: one server per match
  • How to work
  • Phase 0: Understand the project
  • Phase 1: Server changes, local
  • Phase 2: Image, app version, one direct deployment
  • Phase 3: Matchmaker
  • Phase 4: Clients
  • Phase 5: End-to-end test and hand-off

Goal: each match gets its own Colyseus server on Edgegap, placed near its players. Players reach it directly (a URL from a script or the developer's backend) or through Edgegap's matchmaker (click Play, get matched, connect), over wss:// .pr.edgegap.net: , and the server stops its own deployment when the match is over. Done means two real clients played on one Edgegap deployment and it stopped itself afterwards, not that the image builds. This path was run end to end on Edgegap on 2026-10-20 with edgegap/backend-game-sample-threejs-colyseus-tanks, a fork of Colyseus's official tanks demo (Colyseus 0.17, one server, 9 clients; guide in its edgegap/README.md). Verified: the Colyseus matchmake HTTP request and the room WebSocket both go through one WS port with TLS Upgrade; direct mode with Node and Godot desktop clients; matchmaker 3.3.2 matched a Three.js browser client with a Godot desktop client, then with a Unity Windows build; the server stopped itself each time. On 2026-10-29 the same templates ran with a Cocos Creator 3.8.8 web build: edgegap/backend-game-sample-cocos-colyseus-tictactoe, a fork of Colyseus's Cocos tic-tac-toe demo upgraded from Colyseus 0.14 to 0.17, matched w

这里只展示节选,请以完整原文和当前要求为准。

来源仓库
edgegap/llm-agent-skills
源文件
skills/edgegap-colyseus/SKILL.md
固定版本
fd510ba826ea29ab359e70e185d2e650ef6827de
阅读完整原作者说明 ↗

来源与内容状态

本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。

原作者:edgegap/llm-agent-skills · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-11T08:01:42.829Z。

分类由名称、说明与路径规则生成,分类不代表已核实适配。

许可与权利归属

Apache-2.0。第三方内容及版权归原作者,使用条件以原文为准。

许可原文 ↗

本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。

限制与注意事项

  • 元数据收录不代表本站已经安装、适配、实测或进行安全审查。