We’ve created a new extension extension-websocket, that will supercede our old extension (defold-websocket).
The extension is ready for testing now, and we’d like to invite you to test if you use websockets in your projects.
This extension has some advantages over our previous extension.
- Build size (~30% smaller)
- Uses native code (C/C++)
- We can control the socket settings more easily
- Possibility for threading (in case we need it)
Here is a comparison between the old and new websocket extensions, as well as the vanilla engine. (Numbers in bytes)
|OSX||6 736 020||4 070 312||3 963 408|
|iOS||3 937 564||2 682 406||2 644 899|
|Android||5 781 607||3 319 411||3 212 694|
|Windows||7 216 128||4 855 808||6 170 624|
|Linux||6 291 120||3 891 208||3 871 648|
Currently, the only known issue is that the secure connections doesn’t work on HTML5 currently, but we’re working on that.
We’d like to know any issue you find, and also what you think of its performance compared to the old extension.
Please report any found issues in the extension repository.