Sending Http Requests From Photon Server to Node.js Server on Local Port

atomikm
atomikm
edited November 24 in Photon Server

Hi! We'd like to send http requests to a Node.js server on a local port from the Photon server/cloud. Is this possible?

The reason is that we need the ability to use specific javascript libraries. If we could somehow run ES6 javascript (not UnityScript) in a Photon Server/Cloud, that would also work.

Any ideas?

Comments

  • Hi @atomikm,

    Thank you for choosing Photon!

    If you want the HTTP requests to be sent from GameServer in a room context, you could make use of custom plugins which are available for self-hosted Photon Server or Enterprise Cloud but not for Public Cloud. There are also the Webhooks or WebRPC options.

    If you want to send HTTP requests from NameServer you need to modify server code in self-hosted Photon Server SDK v5 unless you want custom authentication maybe?

    If you want to send HTTP requests from MasterServer you need to modify server code in self-hosted Photon Server unless you want custom authentication or WebRPCs.