Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gri3li/symfony-messenger-websocket-transport

WebSocket transport for Symfony Messenger
https://github.com/gri3li/symfony-messenger-websocket-transport

symfony-messenger-transport

Last synced: 29 days ago
JSON representation

WebSocket transport for Symfony Messenger

Awesome Lists containing this project

README

        

Symfony Messenger WebSocket Transport
=====================================

This package provides a WebSocket transport for
the [Symfony Messenger](https://symfony.com/doc/current/components/messenger.html) component, enabling real-time
communication between Symfony Messenger and external services via WebSocket connections.

Installation
------------

Install the package via Composer:

```bash
composer require gri3li/symfony-messenger-websocket-transport
```

Usage
-----

Since all messages will be serialized and deserialized as instances of StdClass, you will most likely need to provide
custom implementations of the interfaces:

- `SendersLocatorInterface`: Defines which sender will be used for dispatching a message.
- `HandlersLocatorInterface`: Defines which handler will process the message.