Centrifuge plugin

Centrifuge plugin [since 2.12.0] replaces our Websockets and Broadcast deprecated plugins. The centrifuge is a robust library with different clients (JS, Dart, Go, Python), which are actively supported. Our previous JS client had feeble support and was not updated for a long time.

RR exposes all available APIs, including a gRPC proxy and the client's API.

API

Proxy interface

RR follows the proxy.proto specifications and proxies these events to the PHP worker. To determine what proxy method was called inside the PHP, RR adds a type : endpoint metadata. For example, if the Subscribe method was called, RR will add type:subscribe metadata to the worker's context.

RPC

You may also use RPC methods to communicate with centrifugo server. RR follows the official centrifugo proto API. Official documentation available here

Edit this page