0

I have been developing a chat application using socket.io on Ubuntu and it needs to be run manually using the command line prior to test it on browser.

I am a PHP developer and how am I supposed to run the application on the server side without putting hands on the terminal?

Furthermore after executing the .js file via command line, I can test the application typing the host and a port typed on in the address bar. How can I overcome that if I am to embed the chat on a PHP page? Currently it looks like an external application.

The socket.io chat uses a .html page to draw the interface. How can I embed it in a PHP file?

Please help.

Teshan N.
  • 2,307
  • 3
  • 30
  • 59
  • To keep socket.io process on server side - any daemon service like `forever`, `pm2` etc. Just render `socket.io-client` library on any page and do a connection with your socket server by specifying relevant `address:port`. – oleh.meleshko Apr 18 '16 at 12:05
  • https://github.com/vgoodvin/ci-chat – Vaghani Janak Apr 20 '16 at 16:14

0 Answers0