What are the implications of setting the third parameter of App to '0.0.0.0' in Ratchet for PHP?

Setting the third parameter of App to '0.0.0.0' in Ratchet for PHP allows the WebSocket server to listen on all available network interfaces, making it accessible from any IP address. This can be useful when you want to make the server publicly available. However, it also means that the server is exposed to potential security risks if not properly configured.

use Ratchet\Server\IoServer;
use Ratchet\Http\HttpServer;
use Ratchet\WebSocket\WsServer;
use MyApp\MyWebSocketServer;

$server = IoServer::factory(
    new HttpServer(
        new WsServer(
            new MyWebSocketServer()
        )
    ),
    8080,
    '0.0.0.0'
);

$server->run();