colyseus 0.15.0-preview.4 â 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -18
- package/build/index.d.ts +1 -1
- package/build/index.js +34 -31
- package/build/index.js.map +7 -1
- package/build/index.mjs +11 -9
- package/build/index.mjs.map +7 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -57,6 +57,13 @@ npm init colyseus-app my-colyseus-server
|
|
|
57
57
|
cd my-colyseus-server
|
|
58
58
|
npm start
|
|
59
59
|
```
|
|
60
|
+
# đ Colyseus Arena: Fast & Scalable Cloud Hosting
|
|
61
|
+
|
|
62
|
+
- Looking for a fully managed solution for your Colyseus game server?
|
|
63
|
+
- Want to focus on game development and not on the hosting and infrastructure?
|
|
64
|
+
- Launching a production title and need a solution for 1,000 to 100,000+ CCUs?
|
|
65
|
+
|
|
66
|
+
If so [Colyseus Arena](https://www.colyseus.io/arena) cloud hosting is the solution you are looking for. Easily upload your existing Colyseus Server code and get started today for Free!
|
|
60
67
|
|
|
61
68
|
# đšī¸ Official Client Integration
|
|
62
69
|
|
|
@@ -103,30 +110,31 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
|
|
|
103
110
|
<!-- markdownlint-disable -->
|
|
104
111
|
<table>
|
|
105
112
|
<tr>
|
|
106
|
-
<td align="center"><a href="https://twitter.com/endel"><img src="https://avatars3.githubusercontent.com/u/130494?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Endel Dreyer</b></sub></a><br /><a href="https://github.com/gamestdio/colyseus/commits?author=endel" title="Code">đģ</a> <a href="https://github.com/gamestdio/colyseus/commits?author=endel" title="Documentation">đ</a> <a href="#example-endel" title="Examples">đĄ</a></td>
|
|
107
|
-
<td align="center"><a href="https://github.com/fazriz"><img src="https://avatars0.githubusercontent.com/u/2628698?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Fazri Zubair</b></sub></a><br /><a href="#question-fazriz" title="Answering Questions">đŦ</a> <a href="https://github.com/gamestdio/colyseus/commits?author=fazriz" title="Code">đģ</a> <a href="#ideas-fazriz" title="Ideas, Planning, & Feedback">đ¤</a> <a href="#business-fazriz" title="Business development">đŧ</a></td>
|
|
108
|
-
<td align="center"><a href="http://seiyria.com"><img src="https://avatars0.githubusercontent.com/u/763609?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Kyle J. Kemp</b></sub></a><br /><a href="#question-seiyria" title="Answering Questions">đŦ</a> <a href="https://github.com/gamestdio/colyseus/issues?q=author%3Aseiyria" title="Bug reports">đ</a> <a href="https://github.com/gamestdio/colyseus/commits?author=seiyria" title="Code">đģ</a> <a href="#ideas-seiyria" title="Ideas, Planning, & Feedback">đ¤</a></td>
|
|
109
|
-
<td align="center"><a href="https://github.com/mobyjames/"><img src="https://avatars0.githubusercontent.com/u/1327007?v=4?s=100" width="100px;" alt=""/><br /><sub><b>James Jacoby</b></sub></a><br /><a href="#question-mobyjames" title="Answering Questions">đŦ</a> <a href="#example-mobyjames" title="Examples">đĄ</a> <a href="#content-mobyjames" title="Content">đ</a></td>
|
|
110
113
|
<td align="center"><a href="https://github.com/halftheopposite/"><img src="https://avatars0.githubusercontent.com/u/5473864?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Aymeric Chauvin</b></sub></a><br /><a href="#question-halftheopposite" title="Answering Questions">đŦ</a> <a href="#example-halftheopposite" title="Examples">đĄ</a></td>
|
|
111
|
-
<td align="center"><a href="
|
|
114
|
+
<td align="center"><a href="https://github.com/brian-hay"><img src="https://avatars2.githubusercontent.com/u/1428000?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Brian Hay</b></sub></a><br /><a href="#content-brian-hay" title="Content">đ</a></td>
|
|
115
|
+
<td align="center"><a href="https://github.com/damian-pastorini"><img src="https://avatars2.githubusercontent.com/u/1211779?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Damian A. Pastorini</b></sub></a><br /><a href="#question-damian-pastorini" title="Answering Questions">đŦ</a> <a href="https://github.com/colyseus/colyseus/commits?author=damian-pastorini" title="Documentation">đ</a> <a href="https://github.com/colyseus/colyseus/issues?q=author%3Adamian-pastorini" title="Bug reports">đ</a></td>
|
|
116
|
+
<td align="center"><a href="https://github.com/Zielak"><img src="https://avatars0.githubusercontent.com/u/625693?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Darek Greenly</b></sub></a><br /><a href="#question-Zielak" title="Answering Questions">đŦ</a> <a href="https://github.com/colyseus/colyseus/issues?q=author%3AZielak" title="Bug reports">đ</a> <a href="https://github.com/colyseus/colyseus/commits?author=Zielak" title="Code">đģ</a></td>
|
|
117
|
+
<td align="center"><a href="https://github.com/Vidski"><img src="https://avatars.githubusercontent.com/u/36316706?v=4?s=100" width="100px;" alt=""/><br /><sub><b>David Rydwanski</b></sub></a><br /><a href="#question-Vidski" title="Answering Questions">đŦ</a> <a href="https://github.com/colyseus/colyseus/commits?author=Vidski" title="Code">đģ</a></td>
|
|
112
118
|
<td align="center"><a href="https://github.com/drburton"><img src="https://avatars0.githubusercontent.com/u/625595?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Dr. Burton</b></sub></a><br /><a href="#mentoring-drburton" title="Mentoring">đ§âđĢ</a></td>
|
|
119
|
+
<td align="center"><a href="https://twitter.com/endel"><img src="https://avatars3.githubusercontent.com/u/130494?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Endel Dreyer</b></sub></a><br /><a href="https://github.com/colyseus/colyseus/commits?author=endel" title="Code">đģ</a> <a href="https://github.com/colyseus/colyseus/commits?author=endel" title="Documentation">đ</a> <a href="#example-endel" title="Examples">đĄ</a></td>
|
|
113
120
|
</tr>
|
|
114
121
|
<tr>
|
|
115
|
-
<td align="center"><a href="https://github.com/
|
|
116
|
-
<td align="center"><a href="https://github.com/
|
|
117
|
-
<td align="center"><a href="https://
|
|
118
|
-
<td align="center"><a href="https://github.com/
|
|
119
|
-
<td align="center"><a href="
|
|
120
|
-
<td align="center"><a href="
|
|
121
|
-
<td align="center"><a href="https://github.com/
|
|
122
|
+
<td align="center"><a href="https://github.com/enriqueto"><img src="https://avatars2.githubusercontent.com/u/5557196?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Enriqueto</b></sub></a><br /><a href="#business-enriqueto" title="Business development">đŧ</a></td>
|
|
123
|
+
<td align="center"><a href="https://github.com/fazriz"><img src="https://avatars0.githubusercontent.com/u/2628698?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Fazri Zubair</b></sub></a><br /><a href="#question-fazriz" title="Answering Questions">đŦ</a> <a href="https://github.com/colyseus/colyseus/commits?author=fazriz" title="Code">đģ</a> <a href="#ideas-fazriz" title="Ideas, Planning, & Feedback">đ¤</a> <a href="#business-fazriz" title="Business development">đŧ</a></td>
|
|
124
|
+
<td align="center"><a href="https://twitter.com/Federkun"><img src="https://avatars2.githubusercontent.com/u/21344385?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Federico</b></sub></a><br /><a href="https://github.com/colyseus/colyseus/issues?q=author%3AFederkun" title="Bug reports">đ</a> <a href="https://github.com/colyseus/colyseus/commits?author=Federkun" title="Code">đģ</a></td>
|
|
125
|
+
<td align="center"><a href="https://github.com/mobyjames/"><img src="https://avatars0.githubusercontent.com/u/1327007?v=4?s=100" width="100px;" alt=""/><br /><sub><b>James Jacoby</b></sub></a><br /><a href="#question-mobyjames" title="Answering Questions">đŦ</a> <a href="#example-mobyjames" title="Examples">đĄ</a> <a href="#content-mobyjames" title="Content">đ</a></td>
|
|
126
|
+
<td align="center"><a href="http://wenish.github.io/portfolio/"><img src="https://avatars0.githubusercontent.com/u/18367963?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jonas Voland</b></sub></a><br /><a href="#question-Wenish" title="Answering Questions">đŦ</a> <a href="https://github.com/colyseus/colyseus/issues?q=author%3AWenish" title="Bug reports">đ</a> <a href="https://github.com/colyseus/colyseus/commits?author=Wenish" title="Code">đģ</a> <a href="#ideas-Wenish" title="Ideas, Planning, & Feedback">đ¤</a> <a href="#example-Wenish" title="Examples">đĄ</a></td>
|
|
127
|
+
<td align="center"><a href="http://seiyria.com"><img src="https://avatars0.githubusercontent.com/u/763609?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Kyle J. Kemp</b></sub></a><br /><a href="#question-seiyria" title="Answering Questions">đŦ</a> <a href="https://github.com/colyseus/colyseus/issues?q=author%3Aseiyria" title="Bug reports">đ</a> <a href="https://github.com/colyseus/colyseus/commits?author=seiyria" title="Code">đģ</a> <a href="#ideas-seiyria" title="Ideas, Planning, & Feedback">đ¤</a></td>
|
|
128
|
+
<td align="center"><a href="https://github.com/LukeWood/"><img src="https://avatars0.githubusercontent.com/u/12191303?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Luke Wood</b></sub></a><br /><a href="#question-LukeWood" title="Answering Questions">đŦ</a> <a href="https://github.com/colyseus/colyseus/issues?q=author%3ALukeWood" title="Bug reports">đ</a> <a href="https://github.com/colyseus/colyseus/commits?author=LukeWood" title="Code">đģ</a></td>
|
|
122
129
|
</tr>
|
|
123
130
|
<tr>
|
|
124
|
-
<td align="center"><a href="https://
|
|
125
|
-
<td align="center"><a href="https://github.com/
|
|
126
|
-
<td align="center"><a href="https://
|
|
127
|
-
<td align="center"><a href="https://github.com/
|
|
128
|
-
<td align="center"><a href="https://oyed.io"><img src="https://avatars0.githubusercontent.com/u/853683?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Tom</b></sub></a><br /><a href="#question-oyed" title="Answering Questions">đŦ</a> <a href="https://github.com/
|
|
129
|
-
<td align="center"><a href="https://
|
|
131
|
+
<td align="center"><a href="https://github.com/doorbash"><img src="https://avatars2.githubusercontent.com/u/5982526?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Milad Doorbash</b></sub></a><br /><a href="https://github.com/colyseus/colyseus/issues?q=author%3Adoorbash" title="Bug reports">đ</a> <a href="https://github.com/colyseus/colyseus/commits?author=doorbash" title="Code">đģ</a></td>
|
|
132
|
+
<td align="center"><a href="https://github.com/TinyDobbins"><img src="https://avatars2.githubusercontent.com/u/20824844?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Nikita Borisov</b></sub></a><br /><a href="https://github.com/colyseus/colyseus/issues?q=author%3ATinyDobbins" title="Bug reports">đ</a> <a href="https://github.com/colyseus/colyseus/commits?author=TinyDobbins" title="Code">đģ</a> <a href="#business-TinyDobbins" title="Business development">đŧ</a> <a href="#ideas-TinyDobbins" title="Ideas, Planning, & Feedback">đ¤</a></td>
|
|
133
|
+
<td align="center"><a href="https://acemobe.com/"><img src="https://avatars2.githubusercontent.com/u/232101?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Phil Harvey</b></sub></a><br /><a href="https://github.com/colyseus/colyseus/commits?author=filharvey" title="Documentation">đ</a></td>
|
|
134
|
+
<td align="center"><a href="https://github.com/serjek"><img src="https://avatars2.githubusercontent.com/u/18265157?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sergey</b></sub></a><br /><a href="https://github.com/colyseus/colyseus/issues?q=author%3Aserjek" title="Bug reports">đ</a> <a href="https://github.com/colyseus/colyseus/commits?author=serjek" title="Code">đģ</a></td>
|
|
135
|
+
<td align="center"><a href="https://oyed.io"><img src="https://avatars0.githubusercontent.com/u/853683?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Tom</b></sub></a><br /><a href="#question-oyed" title="Answering Questions">đŦ</a> <a href="https://github.com/colyseus/colyseus/issues?q=author%3Aoyed" title="Bug reports">đ</a> <a href="#ideas-oyed" title="Ideas, Planning, & Feedback">đ¤</a></td>
|
|
136
|
+
<td align="center"><a href="https://github.com/supertommy"><img src="https://avatars0.githubusercontent.com/u/2236153?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Tommy Leung</b></sub></a><br /><a href="#mentoring-supertommy" title="Mentoring">đ§âđĢ</a></td>
|
|
137
|
+
<td align="center"><a href="https://github.com/digimbyte"><img src="https://avatars2.githubusercontent.com/u/6645396?v=4?s=100" width="100px;" alt=""/><br /><sub><b>digimbyte</b></sub></a><br /><a href="https://github.com/colyseus/colyseus/commits?author=digimbyte" title="Documentation">đ</a></td>
|
|
130
138
|
</tr>
|
|
131
139
|
</table>
|
|
132
140
|
|
package/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
|
@@ -1,34 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
var mongooseDriver = require('@colyseus/mongoose-driver');
|
|
9
|
-
|
|
10
|
-
core.Server.prototype['getDefaultTransport'] = function (options) {
|
|
11
|
-
return new wsTransport.WebSocketTransport(options);
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
8
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var src_exports = {};
|
|
20
|
+
__export(src_exports, {
|
|
21
|
+
RedisDriver: () => import_redis_driver.RedisDriver,
|
|
22
|
+
RedisPresence: () => import_redis_presence.RedisPresence
|
|
25
23
|
});
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
24
|
+
module.exports = __toCommonJS(src_exports);
|
|
25
|
+
__reExport(src_exports, require("@colyseus/core"), module.exports);
|
|
26
|
+
var import_core = require("@colyseus/core");
|
|
27
|
+
var import_ws_transport = require("@colyseus/ws-transport");
|
|
28
|
+
var import_redis_presence = require("@colyseus/redis-presence");
|
|
29
|
+
var import_redis_driver = require("@colyseus/redis-driver");
|
|
30
|
+
import_core.Server.prototype["getDefaultTransport"] = function(options) {
|
|
31
|
+
return new import_ws_transport.WebSocketTransport(options);
|
|
32
|
+
};
|
|
33
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
+
0 && (module.exports = {
|
|
35
|
+
RedisDriver,
|
|
36
|
+
RedisPresence
|
|
33
37
|
});
|
|
34
|
-
//# sourceMappingURL=index.js.map
|
package/build/index.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/index.ts"],
|
|
4
|
+
"sourcesContent": ["export * from \"@colyseus/core\";\n\n//\n// 0.14.x compatibility:\n// each \"presence\", \"transport\", and \"driver\" implementation have been extracted from the core.\n//\nimport { Server } from '@colyseus/core';\nimport { WebSocketTransport } from '@colyseus/ws-transport';\nServer.prototype['getDefaultTransport'] = function(options: any) {\n return new WebSocketTransport(options);\n}\nexport { RedisPresence } from '@colyseus/redis-presence';\nexport { RedisDriver } from '@colyseus/redis-driver';\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAc,2BAAd;AAMA,kBAAuB;AACvB,0BAAmC;AAInC,4BAA8B;AAC9B,0BAA4B;AAJ5B,mBAAO,UAAU,yBAAyB,SAAS,SAAc;AAC7D,SAAO,IAAI,uCAAmB,OAAO;AACzC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/build/index.mjs
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { WebSocketTransport } from
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
export * from "@colyseus/core";
|
|
2
|
+
import { Server } from "@colyseus/core";
|
|
3
|
+
import { WebSocketTransport } from "@colyseus/ws-transport";
|
|
4
|
+
Server.prototype["getDefaultTransport"] = function(options) {
|
|
5
|
+
return new WebSocketTransport(options);
|
|
6
|
+
};
|
|
7
|
+
import { RedisPresence } from "@colyseus/redis-presence";
|
|
8
|
+
import { RedisDriver } from "@colyseus/redis-driver";
|
|
9
|
+
export {
|
|
10
|
+
RedisDriver,
|
|
11
|
+
RedisPresence
|
|
9
12
|
};
|
|
10
|
-
//# sourceMappingURL=index.mjs.map
|
package/build/index.mjs.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/index.ts"],
|
|
4
|
+
"sourcesContent": ["export * from \"@colyseus/core\";\n\n//\n// 0.14.x compatibility:\n// each \"presence\", \"transport\", and \"driver\" implementation have been extracted from the core.\n//\nimport { Server } from '@colyseus/core';\nimport { WebSocketTransport } from '@colyseus/ws-transport';\nServer.prototype['getDefaultTransport'] = function(options: any) {\n return new WebSocketTransport(options);\n}\nexport { RedisPresence } from '@colyseus/redis-presence';\nexport { RedisDriver } from '@colyseus/redis-driver';\n"],
|
|
5
|
+
"mappings": "AAAA,cAAc;AAMd,SAAS,cAAc;AACvB,SAAS,0BAA0B;AACnC,OAAO,UAAU,yBAAyB,SAAS,SAAc;AAC7D,SAAO,IAAI,mBAAmB,OAAO;AACzC;AACA,SAAS,qBAAqB;AAC9B,SAAS,mBAAmB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "colyseus",
|
|
3
|
-
"version": "0.15.0
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Multiplayer Framework for Node.js.",
|
|
5
5
|
"input": "./src/index.ts",
|
|
6
6
|
"main": "./build/index.js",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"node": ">= 14.x"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@colyseus/core": "^0.15.0
|
|
35
|
-
"@colyseus/
|
|
36
|
-
"@colyseus/redis-presence": "^0.15.0
|
|
37
|
-
"@colyseus/ws-transport": "^0.15.0
|
|
34
|
+
"@colyseus/core": "^0.15.0",
|
|
35
|
+
"@colyseus/redis-driver": "^0.15.0",
|
|
36
|
+
"@colyseus/redis-presence": "^0.15.0",
|
|
37
|
+
"@colyseus/ws-transport": "^0.15.0"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "0ec5c17379936d74f4fa18ba68d16cbb7ed2c298"
|
|
40
40
|
}
|