Sign In Register

How can we help you today?

Start a new topic

Sockets from cloud code


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.


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:

Additionally, you can receive incoming HTTP requests ("callbacks") from external services:

Kind regards,


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.

Login to post a comment