---
lang: en
title: 'API docs: socketio.socketiocontrollerfactory'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/extensions/socketio
permalink: /doc/en/lb4/apidocs.socketio.socketiocontrollerfactory.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/socketio](./socketio.md) &gt; [SocketIoControllerFactory](./socketio.socketiocontrollerfactory.md)

## SocketIoControllerFactory class

A factory to instantiate socket.io controllers

<b>Signature:</b>

```typescript
export declare class SocketIoControllerFactory 
```

## Constructors

|  Constructor | Modifiers | Description |
|  --- | --- | --- |
|  [(constructor)(parentCtx, controllerClass, socket)](./socketio.socketiocontrollerfactory._constructor_.md) |  | Constructs a new instance of the <code>SocketIoControllerFactory</code> class |

## Properties

|  Property | Modifiers | Type | Description |
|  --- | --- | --- | --- |
|  [connCtx](./socketio.socketiocontrollerfactory.connctx.md) |  | [SocketIoConnectionContext](./socketio.socketioconnectioncontext.md) |  |

## Methods

|  Method | Modifiers | Description |
|  --- | --- | --- |
|  [connect()](./socketio.socketiocontrollerfactory.connect.md) |  |  |
|  [create()](./socketio.socketiocontrollerfactory.create.md) |  |  |
|  [getAllMethodMetadataForKey(metadataAccessor)](./socketio.socketiocontrollerfactory.getallmethodmetadataforkey.md) |  |  |
|  [getCallback(methodName)](./socketio.socketiocontrollerfactory.getcallback.md) |  |  |
|  [getDecoratedMethodsForConnect()](./socketio.socketiocontrollerfactory.getdecoratedmethodsforconnect.md) |  |  |
|  [getDecorateSubscribeMethods()](./socketio.socketiocontrollerfactory.getdecoratesubscribemethods.md) |  |  |
|  [getDecorateSubscribeMethodsByEventName()](./socketio.socketiocontrollerfactory.getdecoratesubscribemethodsbyeventname.md) |  |  |
|  [registerSubscribeMethods()](./socketio.socketiocontrollerfactory.registersubscribemethods.md) |  |  |
|  [setup()](./socketio.socketiocontrollerfactory.setup.md) |  | Set up the controller for the given socket |


