Queue messages from external source

edited February 2011 in Photon Server
Hey there,

I was wondering what the best approach would be if I wanted to send a user or room a message from a web server? For example, we have a game that contains a combination of the multiplayer server as well as basic REST services as well. I would like to invoke a message to a specific client or room from the web server.

The only approach I've thought of so far would be to create a thread that is constantly reading a database table looking for new messages and then process them.



  • There is a serverToServer namespace in the photon.socketserver.dll. It contains classes that allow you to open a tcp connection between two servers.
    You can also use the normal dotnet client lib, but you'd have to call "service" frequently to avoid a disconnect.