Tag Archives: examples

SFS2X and Node.js

Some time ago we have been asked by the developers at Gameshastra how to integrate our SFS2X JavaScript client API in Node.js, in order to create a Node application capable of interacting with SmartFoxServer 2X.

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.

Continue reading

HTML5 / JavaScript tutorials

We just published the first batch of HTML5 / JavaScript tutorials describing the following examples in details:

  • Connector
    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.

Unity Asset Store

We just updated the SmartFoxServer 2X examples package in the Unity Asset Store:
http://u3d.as/content/goto-and-play-/smart-fox-server2x-multiplayer-sdk

All examples have been revamped with the new UI system introduced in Unity 4.6 and are now compatible with Unity 5’s WebGL build (except the FPS example, which requires UDP connection).
A new “Advanced Connector” example was added, showing how to deal with protocol encryption introduced in SmartFoxServer 2X v2.10.
All tutorials available on the website have been updated accordingly to the changes in the examples.