Page Contents

Home > @loopback/socketio > SocketIoServer > controller

SocketIoServer.controller() method

Register a socket.io controller

Signature:

controller(controllerClass: Constructor<unknown>): Binding<unknown>;

Parameters

Parameter Type Description
controllerClass Constructor<unknown>  

Returns:

Binding<unknown>