The need to communicate between an Extension and a remote server via HTTP/S is quite a common use case. Since SmartFoxServer already comes with embedded HTTP API we’re going to demonstrate how simple it is to integrate web requests in your server side code.
Continue readingTag Archives: extension
Object serialization between static and dynamic languages
Among the advanced features provided in the SmartFoxServer SDK is the ability to exchange any class instance between client and server with minimal coding intervention. This is particularly useful for statically typed languages such as Java, C# and Actionscript, while dynamic languages such as Javascript are not directly supported.
In this article we’re going to discuss an alternative way to implement custom serialization for classes that are needed from both client and server side to implement our game logic.
If you’re not entirely familiar with the topic of class serialization in SFS2X we recommend reading this article from our documentation Continue reading
SFS2X multi-threading demystified
Often times articles in this blog are inspired by questions and issues raised by our users and this new entry is no exception. One aspect of SmartFoxServer that seems to intimidate developers is the multi-threaded environment behind custom Extensions, and the relative implications in terms of concurrency, scalability and performance.
In this new entry we’re going to demystify the subject and demonstrate how simple and painless is writing server side code, even when many other things are running concurrently. Continue reading
Best of both worlds: SFS2X + server side Unity for realtime games (p2)
In part one of this article series we took a bird’s eye look at various client-server strategies for action multiplayer games. We then highlighted the advantages of running an hybrid solution with SmartFoxServer 2X and Unity on the server side to combine the best of both worlds.
In this second part we’ll be looking at the details of implementing such a solution, the potential difficulties and how to overcome them.
If you have skipped the first article we highly recommend to go back and read it, before you proceed. Continue reading
Functional Java in server side Extensions
With the release of patch 2.13.1 SmartFoxServer 2X adds support for functional Java and lambdas in server side Extensions. In this article we’re going to take a closer look at how we can use lambdas in our server side code. Continue reading
Better ways of logging Exceptions in SFS2X
A recent discussion on our support forum brought up the struggle of sending enough details to the log files when an Exception is caught on the server side. In this article we provide a few options to improve error reporting in your Extensions and avoid those puzzling, single-line errors. Continue reading
JavaScript is back!
With the release of SFS2X 2.13 last week we’re happy to reintroduce JavaScript as a server side language. For those familiar with the history of SmartFoxServer, JavaScript has been available since the early days of SFS PRO for writing server side code, and it’s now coming back thanks to the latest improvements in JDK 7 and 8.
SmartFoxServer 2X 2.13 released!
A new SmartFoxServer 2X version is available that focuses mainly on JavaScript for both client and server side.
We’re gladly re-introducing JavaScript as full-fledged server-side language for Extensions, thanks to the improved performance of the Nashorn engine, provided in JDK 8. Continue reading
The return of JavaScript
As disclosed in our latest newsletter, JavaScript is coming back to SmartFoxServer!
With release 2.13 we’ll launch a new JavaScript client API taking full advantage of the SmartFoxServer 2X binary (and compressed) protocol, providing improved network efficiency. Continue reading
Using properties files to load Extension settings
Often times server-side code requires a number of configuration parameters that can be easily tweaked without recompiling and re-deploying the Extension. In this article we will show a useful and little known feature of SFS2X’s Extensions. Continue reading