Convert Javascript (node.js) to PHP Websocket (Ratchet)
Budget: $30 – $250 USD
I currently have a websocket that is built in JavaScript (node.js) I want to convert the script to PHP (Ratchet).
Since the JavaScript code is completed it should not be hard to convert to PHP as all the calls are already implemented.
The websocket makes API calls to the example code below:
if ($server->remote_ip() != 'XX.XX.XXX.XXX') {
This code would look for an IP (VPS) where the websocket WAS and use that to authenticate.
Since we are moving the websocket to our webserver this code needs to be adjusted as well, to accept an URL instead of IP.
The purpose of this websocket is to detect when a user leaves the website and send a request to the API, half the script is JavaScript and other half is PHP. The JavaScript needs to be converted to PHP.
The Ratchet library is already installed on the webserver.
Since the JavaScript code is completed it should not be hard to convert to PHP as all the calls are already implemented.
The websocket makes API calls to the example code below:
if ($server->remote_ip() != 'XX.XX.XXX.XXX') {
This code would look for an IP (VPS) where the websocket WAS and use that to authenticate.
Since we are moving the websocket to our webserver this code needs to be adjusted as well, to accept an URL instead of IP.
The purpose of this websocket is to detect when a user leaves the website and send a request to the API, half the script is JavaScript and other half is PHP. The JavaScript needs to be converted to PHP.
The Ratchet library is already installed on the webserver.