https://github.com/colyseus/colyseus-haxe
⚔ Colyseus Multiplayer SDK for Haxe
https://github.com/colyseus/colyseus-haxe
colyseus haxe haxelib multiplayer netcode networking
Last synced: 2 months ago
JSON representation
⚔ Colyseus Multiplayer SDK for Haxe
- Host: GitHub
- URL: https://github.com/colyseus/colyseus-haxe
- Owner: colyseus
- License: mit
- Created: 2018-07-09T02:36:45.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2026-02-04T14:38:24.000Z (4 months ago)
- Last Synced: 2026-02-05T01:46:30.415Z (4 months ago)
- Topics: colyseus, haxe, haxelib, multiplayer, netcode, networking
- Language: Haxe
- Homepage: https://docs.colyseus.io/getting-started/haxe-client/
- Size: 350 KB
- Stars: 87
- Watchers: 12
- Forks: 15
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-haxe-gamedev - colyseus-hx - Multiplayer Game Client. (Networking)
README
## Running the demo project
First, download and install [Haxe](https://haxe.org/download/).
The [`example`](https://github.com/colyseus/colyseus-haxe/blob/master/example/openfl) project can be compiled to `html5`, `neko`, `cpp`, `ios`, etc.
### Compiling the demo project to `html5`
```
git clone https://github.com/colyseus/colyseus-haxe.git
cd colyseus-haxe/example/openfl
haxelib install openfl
haxelib install lime
haxelib install tink_http
haxelib install tink_await
haxelib install swf
haxelib install colyseus-websocket
haxelib run lime test project.xml html5
```
### Running the server
The demo project uses the **SDK Test Server**. You can start the server by running the following commands:
```
git clone https://github.com/colyseus/sdks-test-server
cd sdks-test-server
npm install
npm start
```
## Development
Running the test-suite:
```
haxe hxml/test.js.hxml
```
## Troubleshooting
> Error#500: Chunked encoding is not supported and the content-length header is required.
Make sure your HTTP responses from the server-side don't respond with `Transfer-Encoding: chunked` header. Include the `Content-Length: xxx` header to avoid _"chunked"_ responses.
## Dependencies
[colyseus-haxe](https://github.com/colyseus/colyseus-haxe) depends on [`colyseus-websocket`](https://github.com/colyseus/colyseus-websocket-hx)
## License
MIT