• English
  • Français

Server-side scripting

Apideo is mainly used to communicate between browsers. An advanced security mode using tokens can be used to be sure that only authorized users send a certain kind or event, or claim a certain role.

However, for advanced applications, you might need to add some behaviour directly on the Apideo servers.

This feature is in private beta. If you want to access it, you will need a pro-account. Send us a mail to contact@apideo.com and we will open the access to server-side scripting.

Server-side scripting is performed in Javascript. There is one Javascript context per room.

The server-side script

The server-side script is a Javascript script that is executed once each time a room is created. Since a room is created when the first user joins the room, the server-side script will run from the start of the room until the last user quits the room.

The script is executed for every room of your Apideo key, so you will have to decide in the script what to run for the current room.

Here is an exemple: