Remote functions

Is there a way to create a server side function that can be called in the client side?

@ccfiel You could use messaging, i.e. on the client side use room.send() and then on the server side receive the message in the Room class' onMessage() handler. Depending on the message contents, execute required function and return reply to client with Room's send() method. Client will receive the reply via room's registered onMessage handler.