@miladev/realtimeio
v0.0.2
Published
<p align="center"> <a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="200" alt="Nest Logo" /></a> </p>
Downloads
1
Readme
Description
Nest framework TypeScript realtime broker repository.
Get started
First create account in Realtime Broker website and get API_KEY, use SERVER_URL as https://realtimeio.sutchapp.com
Installation
$ yarn install @miladev/realtime --save
Config app in app.module.ts
RealtimeIOModule.forRoot({
API_KEY: "API_KEY",
SERVER: "SERVER_URL"
})
Config app async mode in app.module.ts
RealtimeIOModule.forRootAsync(
imports: [ConfigModule],
useFactory: (config: ConfigService) =>({
API_KEY: config.get('API_KEY')
SERVER: config.get('SERVER')
}),
inject: [ConfigService]
)
in .env file
API_KEY=apikey
SERVER=https://broker.sutchapp.com
Stay in touch
- Author - Tsiresy Milà
License
Nest is MIT licensed.