To support IE8 and later versions. All the online searches are socket. io, but this can be used with node. js. My server uses php. To support IE8 and later versions. All the online searches are socket. io, but this can be used with node. js.
My server uses php.
Reply content:
To support IE8 and later versions. All the online searches are socket. io, but this can be used with node. js.
My server uses php.
PHP writeWebSocketYou need to process raw data by yourself. the front-end database is essentially a common method of encapsulation,Socket. ioYou can.
WebSocketHTML5 API is an advanced feature built in the browser, which is absolutely not supported by IE8, and client javascript is not as powerful as custom protocols. therefore, the old browser can only continue to use round robin.
With web-socket-js, flash will be used for socket communication in earlier browsers. However, he also has the disadvantage that only text data can be sent, if your data packet format is designed as binary, it is not supported.
We recommend several frameworks swoole and workerman if you insist on using PHP on the server.
See workerman-chat, as if to use web-socket-js