@miladev/realtime.io
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Nest framework TypeScript realtime broker repository.

Get started

First create account in Realtime Broker website and get REALTIMEIO_SERVER, use SERVER_URL as https://realtimeio.sutchapp.com

Installation

$ yarn add @miladev/realtime.io --save

Config app in app.module.ts

RealtimeIOModule.forRoot({
  REALTIMEIO_SERVER: '[REALTIMEIO_SERVER]',
  REALTIMEIO_SERVER: '[REALTIMEIO_SERVER]',
});

Config app async mode in app.module.ts

 RealtimeIOModule.forRootAsync({
    imports: [ConfigModule],
    useFactory: (config: ConfigService) =>({ 
      REALTIMEIO_KEY: config.get('REALTIMEIO_SERVER')
      REALTIMEIO_SERVER: config.get('REALTIMEIO_SERVER')
    }),
    inject: [ConfigService]
  }
 )

in .env file

REALTIMEIO_SERVER=[apikey]
REALTIMEIO_SERVER=https://realtimeio.sutchapp.com

Stay in touch

License

Nest is MIT licensed.

Readme

Keywords

none

Package Sidebar

Install

npm i @miladev/realtime.io

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

27.6 kB

Total Files

25

Last publish

Collaborators

  • tsiresy