I had today the idea of a rednet alternative that isnt only limited to the server by making an API and a http server, over that the messages are send. I don't have any idea of http so I couldn't make it, but if someone has the needed coding knowledge and the money for renting a server for making this it would be nice for multiplayer games. So, what do you think about this idea?
Concept: http based rednet alternative
Started by M4sh3dP0t4t03, Apr 22 2013 03:28 AM
7 replies to this topic
#1
Posted 22 April 2013 - 03:28 AM
#2
Posted 22 April 2013 - 03:48 AM
I don't think thats possible without sockets.
#3
Posted 22 April 2013 - 04:13 AM
You can write a simple Node.js script to store all messages in a array then when you request a message it will just print out the message. But anything real-time needs to be with sockets.
#4
Posted 22 April 2013 - 05:09 AM
It is possible without sockets, it will just spam HTTP.
For polling the server for a response, you could just have the script wait until a new message appears, and use http.request in a loop to avoid the request timeouts. I don't recommend this though, plus it wouldn't be very real time.
For polling the server for a response, you could just have the script wait until a new message appears, and use http.request in a loop to avoid the request timeouts. I don't recommend this though, plus it wouldn't be very real time.
#5
Posted 22 April 2013 - 07:03 AM
Look at my WCON (signature)
#8
Posted 22 April 2013 - 11:17 AM
Yes, it doesn't matter how you will do it, HTTP API will always have a delay tho.
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users












