Sending JSON

Options
Hi all,
I need to send JSON settings file over network, is there any proper way of doing so without sending every variable by itself?

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @luvjungle,

    Thank you for choosing Photon!

    Send JSON string.
  • luvjungle
    Options
    JohnTube said:

    Hi @luvjungle,

    Thank you for choosing Photon!

    Send JSON string.

    Yes, I am sending it as a string now, but it's pretty big (about 5kb), and I think that I get timeout disconnect from server at this exact moment. I read "Analyzing Disconnects" and it says things like "avoid strings" and "don't send much". Need to test it without sending string, though. Anyway I'm searching for workarounds.