File

src/api/realtime/realTimeModule.ts

Description

Real Time Module used to work with realtime events from datasets and filesets. This object must be build from the helper functions, never to be instantiated directly.

Example

```typescript

  • import { jexiaClient, dataOperations, realTime } from "jexia-sdk-js/node";
  • const dataModule = dataOperations();
  • const realTimeModule = realTime();
  • jexiaClient().init(credentials, dataModule, realTimeModule);
  • dataModule.dataset("posts")
  • .watch()
  • .subscribe(e => console.log(e));
  • ```

Implements

IModule

Index

Methods

Methods

Public channel
channel(name: string)
Type parameters :
  • T

Return a channel

Parameters :
Name Type Optional Description
name string No

Name of the channel

Returns : Channel<T>

result-matching ""

    No results matching ""