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)](/doc/en/lb4/apidocs.socketio.socketiocontrollerfactory._constructor_.html) Constructs a new instance of the `SocketIoControllerFactory` class

Properties

Property Modifiers Type Description
[connCtx](/doc/en/lb4/apidocs.socketio.socketiocontrollerfactory.connctx.html) `readonly` [SocketIoConnectionContext](/doc/en/lb4/apidocs.socketio.socketioconnectioncontext.html)

Methods

Method Modifiers Description
[connect()](/doc/en/lb4/apidocs.socketio.socketiocontrollerfactory.connect.html)
[create()](/doc/en/lb4/apidocs.socketio.socketiocontrollerfactory.create.html)
[getAllMethodMetadataForKey(metadataAccessor)](/doc/en/lb4/apidocs.socketio.socketiocontrollerfactory.getallmethodmetadataforkey.html) `protected`
[getCallback(methodName)](/doc/en/lb4/apidocs.socketio.socketiocontrollerfactory.getcallback.html)
[getDecoratedMethodsForConnect()](/doc/en/lb4/apidocs.socketio.socketiocontrollerfactory.getdecoratedmethodsforconnect.html)
[getDecorateSubscribeMethods()](/doc/en/lb4/apidocs.socketio.socketiocontrollerfactory.getdecoratesubscribemethods.html) `protected`
[getDecorateSubscribeMethodsByEventName()](/doc/en/lb4/apidocs.socketio.socketiocontrollerfactory.getdecoratesubscribemethodsbyeventname.html)
[registerSubscribeMethods()](/doc/en/lb4/apidocs.socketio.socketiocontrollerfactory.registersubscribemethods.html) `protected`
[setup()](/doc/en/lb4/apidocs.socketio.socketiocontrollerfactory.setup.html) Set up the controller for the given socket