WebSockets
@marblejs/websockets module implements the RFC 6455 WebSocket protocol, providing full-duplex communication channels over a single TCP connection.
Installation
$ yarn add @marblejs/websockets @marblejs/core rxjs fp-tsBootstrapping
import { webSocketListener } from '@marblejs/websockets';
const effects = [
effect1$,
effect2$,
// ...
];
const middlewares = [
middleware1$,
middleware2$,
// ...
];
export const listener = webSocketListener({ effects, middlewares });Effects
Last updated