I want to create a websokect chat room and download some demos online. I can't even use them. I would like to thank you for your advice. my younger brother's php is very helpful. I only know the php code,
Recently, the websokect chat room needs to be implemented, but the backend code has been running normally,
I use wamp as a php Server. is it necessary to configure something on the server when php supports websokect?
WS_STATIC_URL = 'http: // 127.0.0.1/websocket/static '; WS_HOST = '2017. 0.0.1'; WS_PORT = 127;
For example, Port 843 or something.
Reply to discussion (solution)
If a firewall exists, all ports must be enabled.
The php_sockets extension needs to be loaded.
The server must run in CLI (command line) mode. pay attention to the location of php. ini.
If a firewall exists, all ports must be enabled.
The php_sockets extension needs to be loaded.
The server must run in CLI (command line) mode. pay attention to the location of php. ini.
Thank you for using nodejs.