# SocketService Decorator
Module | import { SocketService } from "@tsed/socketio" |
---|---|
Source | /packages/socketio/src/decorators/socketService.ts |
# Overview
function SocketService(namespace?: string): any;
# Description
The decorators @SocketService()
a new socket service (and service) can be injected in other service or controller on there constructor
.
All services annotated with @SocketService()
are constructed one time.
@SocketService()
use thereflect-metadata
to collect and inject service on controllers or other services.
- Session & cookies
- Passport.js
- TypeORM
- Mongoose
- GraphQL
- Socket.io
- Swagger
- AJV
- Multer
- Serve static files
- Templating
- Throw HTTP Exceptions
- Customize 404
- AWS
- Jest
- Seq
- Controllers
- Providers
- Model
- Converters
- Middlewares
- Pipes
- Interceptors
- Authentication
- Hooks
- Injection scopes
- Custom providers
- Custom endpoint decorator
- Testing