Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

http.request or io.open?

in Questions Posts: 808

I’d like to ask here if somebody is experienced with web apis and connections.

What would you prefer for a real time connection? PS. If it helps I’m working on a remake of the player in client and I’m trying to do it with codea. Does anyone know what’s good for a real time updating connection?

Comments

  • edited August 2018 Posts: 491

    I think you can use both protocols: http and udp. udp might be a little faster though (as far as I hear), but it does not guaranty that your client receives the message. you would need to roll out your own checking on that end.

    Anyway, the biggest issue ist the "hole punching" that you need to perform in order to know your real network ip (which is another level of complexity). You could use a remote sever as a message transmitter but I dont want to go into detail on that end. try to read a little about http and udp and you will get some overview quickly.

    # edit: ehm, that was about doing it manually. there are maybe services that do that for you. one example is using this realtime json database https://www.rethinkdb.com

  • Posts: 808

    Thank you @se24vad

Sign In or Register to comment.