# SocketService Decorator

import { SocketService } from "@tsed/socketio"

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