Posts: 147
Threads: 73
Joined: Jul 2013
Reputation:
0
I want to know what are the possible ways to achieve realtime communication between samp server and web server. I am experimenting with samp sockets but I can't find a tutorial or documentation to understand it. I would like to hear your suggestions.
Thanks in advance!
Posts: 8
Threads: 2
Joined: Jan 2016
Reputation:
0
Get a mysql database on your webserver then connect SAMP to the the same database. Now you can have SAMP read the webserver and have the website/server change the database vise versa. If that is what you meant. If you use PHP having an automatic check will be abit difficult, you should then use nodejs I think.
EDIT DIDN'T SEE REAL-TIME, my bad
Posts: 1,506
Threads: 13
Joined: Jun 2015
I'm not sure but maybe this is what you're looking for?
https://sampforum.blast.hk/showthread.php?tid=628477
Posts: 579
Threads: 5
Joined: Oct 2015
You could use web sockets from the requests plugin:
https://sampforum.blast.hk/showthread.php?tid=653362