Web Sockets

Linker creates a web socket server to communicate in real time with the frontend.

It uses web socket along with the message queue to handle some events with the frontend.

To use web sockets with the message queue you have to use the rizeWsGateway in src/baas/rize/rize-mq/rize-mq.service.ts and emit an event like the example below:

this.rizeWsGateway.wss
            .to(user.id)
            .emit(WebsocketCustomerEvents.STATUS_TO_ACTIVE, data);

The event will be transmitted in /rize namespace to the frontend.

Last updated