# SocketService Decorator

Module
import { SocketService } from "@tsed/socketio"
Source/packages/socketio/src/decorators/socketService.ts

# Overview

function SocketService(namespace?: string): Function;

# 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 the reflect-metadata to collect and inject service on controllers or other services.