Page Contents

Home > @loopback/socketio > SocketIoControllerFactory

SocketIoControllerFactory class

A factory to instantiate socket.io controllers

Signature:

export declare class SocketIoControllerFactory 

Constructors

Constructor Modifiers Description

(constructor)(parentCtx, controllerClass, socket)

Constructs a new instance of the SocketIoControllerFactory class

Properties

Property Modifiers Type Description

connCtx

readonly

SocketIoConnectionContext

Methods

Method Modifiers Description

connect()

create()

getAllMethodMetadataForKey(metadataAccessor)

protected

getCallback(methodName)

getDecoratedMethodsForConnect()

getDecorateSubscribeMethods()

protected

getDecorateSubscribeMethodsByEventName()

registerSubscribeMethods()

protected

setup()

Set up the controller for the given socket