function register
register(client: WsClient): void

Adds a client once its socket opens. From then on, it receives the broadcasts, and is shown online if it is signed in.

Parameters

client: WsClient

Return Type

void

Usage

import { register } from "api/services/ws-service.ts";