can we establish photon connection with nodejs for sending room events

Options
vinita123
vinita123
edited November 2018 in JavaScript and TypeScript
can we establish photon connection with nodejs for sending room events
photon server is already connected with Unity

Answers

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @vinita123,

    Thank you for choosing Photon!

    Do you mean you want to run a Photon client instance from a node.js server?
    Yes, that is doable.
    Did you try the Photon Realtime JavaScript SDK?
    You need to be careful with serializing and deserializing events.
    If the Unity client SDK you use is PUN you need extra considerations (mainly AppVersion) to be able to communicate with both.
    The JavaScript client won't support most of the PUN specific features out-of-the-box (Instantiation, RPC, etc.) due to this.
  • vinita123
    vinita123
    edited November 2018
    Options
    I don't want to connect with nodejs client side. I want photon connection for nodejs server side.( like we use socket.io for server side). Is there any way to connect through nodejs server side?
    so we need server to server communication.
  • JohnTube
    JohnTube ✭✭✭✭✭
    Options