Hi Dave,
I'm unsure exactly what you mean when you say "sockets" communication.
You cannot create connections using the WebSockets protocol, but it is certainly possible to send normal REST requests using SparkHttp from cloud code which can connect to any external service you choose. Please see the documentation: https://docs.gamesparks.com/api-documentation/cloud-code-api/integrations/sparkhttp.html
Additionally, you can receive incoming HTTP requests ("callbacks") from external services: https://docs.gamesparks.com/tutorials/cloud-code-and-the-test-harness/using-custom-callback-urls.html
Kind regards,
Jon.
Thanks Jon, I think that will work for us. I did mean WebSockets, we have an existing socket server that we could connect to, but I can implement a REST interface too.
Dave Walker
Hi,
Is it possible to initiate sockets communication from cloud code to an external server?
We are considering this approach to migrate user data from a legacy system into GameSparks as each user logs in for the first time.
Thanks!