I'm making a website which will when opened on the phone have two functions. To be used as regular website or as a remote for the same website opened on the PC.
Let me try to explain a bit better:
For example YouTube TV does exactly what i want to do. I want to be able to pair my Website and Phone(Website opened on the phone) so i can use my phone to control the website functions. For example executing JavaScript command with parameters sent from the Phone (Playing a video on PC that i selected on Phone)
I've been looking into this and so far using my limited skills of PHP/JS/MySQL i ended up making ajax that checks if theres queued command in DB to be executed ever so often (interval of 2 sec). But i dont really think thats the best option to go with even if ... It'll work somehow.
So please if you could give me some example where this is done right, some tutorials links or tools i can use it would be great.
Thank You