mercredi 30 septembre 2015

Laravel - How to register custom broadcaster

I want to register a custom broadcaster with the BroadcastManager without having to change the internal framework code...

Now I have to do something like this in the Illuminate\Broadcasting\BroadcasterManager class:

protected function createMyCustomDriver(array $config) {
  // return instance....
}

There is an extend method however, but I don't know if it's ment for this use case or how to use it...

The goal is to use a Broadcaster implementation that uses ZMQ to send these broadcasted events to the WebSocket php server instance.

Any help appreciated!



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire