Open hossein-zare opened 3 years ago
PHP's socket_create()
function is to WebSockets, which specifies additional framing, like chalk is to cheese. WS implementations can be very small (mine is ~100 lines), but it's definitely not built in.
As an aside, I personally find the sockets
extension very... idiosynchratic, and tend to strongly prefer the stream_ functions everywhere I can.
/functions.txt
currently only lists stream_socket_client
, suggesting that stream_socket_server
is yet to be implemented. (Note, that link goes to a1c816
, which was current as of writing this comment.)
PHP's
socket_create()
function is to WebSockets, which specifies additional framing, like chalk is to cheese. WS implementations can be very small (mine is ~100 lines), but it's definitely not built in.As an aside, I personally find the
sockets
extension very... idiosynchratic, and tend to strongly prefer the _stream__ functions everywhere I can.
/functions.txt
currently only listsstream_socket_client
, suggesting thatstream_socket_server
is yet to be implemented. (Note, that link goes toa1c816
, which was current as of writing this comment.)
Can you please share websocket client implementation?
Hello, is WebSocket (the socket_create() function and some other funcs) supported or not implemented?