/
githubmirror
/
nest
Обзор
Документация
Войти
/
githubmirror
/
nest
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
sample/02-gateways/src/main.ts
15 строк
473 B
Tomer Ron
docs(sample-02-gateways): remove redis adapter, add documentation on how to add the redis adapter
17 фев 2022, 15:07
Не верифицирован
17 фев 2022, 15:07
ff66f4c
Код
Авторство
О чём код?
import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; async function bootstrap() { const app = await NestFactory.create(AppModule); // Uncomment these lines to use the Redis adapter: // const redisIoAdapter = new RedisIoAdapter(app); // await redisIoAdapter.connectToRedis(); // app.useWebSocketAdapter(redisIoAdapter); await app.listen(3000); console.log(`Application is running on: ${await app.getUrl()}`); } bootstrap();