Queue messages from external source
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.
Thanks.
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.
Thanks.
0
Comments
-
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.0