Hello, i need to open 2 ports for ws:// connection like 4001 and 4002 for php sockets to one script.
Can you explain me how can i open that 2 ports for running sockets?
I have VPS and use apache only on centos webpanel.
Thank you.
// Real-time Dashboard WebSocket server. (Sample URL: website.com:4001/dashboard)
define('DASHBOARD_PROTOCOL', 'ws'); // ws for insecure connection and wss for a secured connection.
define('DASHBOARD_KEY_PATH', 'config/server.pem'); // Path to the PEM file when your using a secured connection.
define('DASHBOARD_HOST', SITE_DOMAIN.SITE_TLD); // Server host.
define('DASHBOARD_PORT', ''); // Server port.
define('DASHBOARD_APP', '/dashboard'); // Application name.
define('DASHBOARD_MAX_CLIENTS', 1000); // Maximal amount of connected clients.
define('DASHBOARD_MAX_CONNECTIONS_IP', 5); // Maximal amount of connections per minute.
define('DASHBOARD_MAX_REQUEST_PM', 300);