socket.io-php-emitter
socket.io-php-emitter copied to clipboard
A PHP implementation of socket.io-emitter
- Replaces checked in mspack_pack.php with rybakit/msgpack composer package - Adds UID to packed message - Removes "#emitter" suffix on key fixes #36
Hello guys seems this proyect is dead? Seems is not working for Socket.io 4 and no updates / answers Why socket.io officialsite indicates this project? https://socket.io/docs/v4/redis-adapter/#Emitter
I can not get any response in my backend Here is mycode `require_once __DIR__ . '/../vendor/autoload.php'; // Autoload files using Composer autoload include 'process.php'; use SocketIO\Emitter; $emitter = new SocketIO\Emitter(array('port'...
Hi, I get error "read error on connection" when I emit data. The connection seems to be ok though. When I create an emitter object, I get a connected object...
When emitting a map of data that uses non-sequential numerical indexes, e.g.: ``` $data = [ "3" => "foo", "7" => "bar" ]; $emitter = new SocketIO\Emitter(); $emitter->emit('event', $data); ```...
Hi, how can I use this to send a message to a private socket id?
When I run the script in the example I get an error by which class Redis (whether or not preceeded by \) is not found. I installed the whole by...
Is there a way to check whether or not a room exists before using `emitter->to(room)->emit()`? If there's no one in `room` then i'd like PHP to execute a different script,...
Does it work with https transport? I am getting this error "stream_socket_client(): unable to connect to xxxxxxxxxx:pppp (Connection refused)"