I am now starting with websocket, I have developed a realtime chat using the Ratchet library, I would like if there is any way to initialize the websocket without having to run command through the terminal.
I saw in the documentation the command:
<?php
$app = new Ratchet\App('localhost', 8080);
$app->route('/chat', new MyChat);
$app->route('/echo', new Ratchet\Server\EchoServer, array('*'));
$app->run();