We have a strategy game for which we built native client apps in Android, iOS and HTML5. We are also exposing the client functionality as a rest api for apps to be built for Amazon Alexa and Google Assistant. That rest api is being built on Node.js and we want to consume the same services hosted on SFS2X, so that we can manage all the platforms from the same server base and provide unified experience.
Starting from this new version, we completely reviewed the build process of the API.
This fixes some compatibility issues of the internal third-party libraries with module bundlers (like webpack) and also brings:
- reduced API file size (-41%)
- a source map to help debug the API, should unexpected issues show up in the future
- the official SFS2X API package for the npm package builder
- Node.js compatibility
As always, the new package is available on the download page of our website (other than in the npm repository, from now on).
In order to showcase the usage of the API with npm and webpack, we also released a variant Connector example describing the project setup and build process, including the new source mapping option.
Learn how to configure the client and make your first connection
- Simple Chat
Learn how to create a basic chat environment for connected users
- Advanced Chat
Learn how to create a complete browser-based chat application featuring public chat messaging, Rooms management, private chat messaging and more
- Game Lobby
Learn how to create a “lobby” application where users can meet and invite each other to play games
All tutorials are available in our documentation website.
A new SFS2X update is available with new powerful features and fixes discussed in the support forums recently:
- Improved scalability and thread management via Auto-scaling Thread Pools. No more need to fine tune threads by hand
- BlueBox v3.0: revamped and improved edition running on the latest Jetty 9
- Integrated file uploads
- Added support for websockets over SSL (WSS)
- AdminTool: Extension Manager module, allows to manage, upload and deploy Extensions directly from the Admin GUI
- AdminTool: administrators can now be given access to a selection of modules and server halt/restart permissions
… lots more …
You can read the full release notes and download the installer from here.
Also check the latest HTML5 client API supporting the WSS protocol and the porting of the SpaceWar game to Unity (available in the Unity examples package).