@miladev/realtime.io
v0.0.3
Published
NestJS module for realtime communication and logging
Downloads
1
Readme
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
- Author - Tsiresy Milà
License
Nest is MIT licensed.