---
lang: en
title: 'API docs: socketio.defaultsocketiosequence._constructor_'
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.defaultsocketiosequence._constructor_.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/socketio](./socketio.md) &gt; [DefaultSocketIoSequence](./socketio.defaultsocketiosequence.md) &gt; [(constructor)](./socketio.defaultsocketiosequence._constructor_.md)

## DefaultSocketIoSequence.(constructor)

Constructs a new instance of the `DefaultSocketIoSequence` class

**Signature:**

```typescript
constructor(context: Context, controller: ControllerClass, invoke: SocketIoInvokeMethod, send: SocketIoSendMethod, reject: SocketIoRejectMethod);
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td markdown="1">

context


</td><td markdown="1">

[Context](./context.context.md)


</td><td markdown="1">


</td></tr>
<tr><td markdown="1">

controller


</td><td markdown="1">

[ControllerClass](./core.controllerclass.md)


</td><td markdown="1">


</td></tr>
<tr><td markdown="1">

invoke


</td><td markdown="1">

[SocketIoInvokeMethod](./socketio.socketioinvokemethod.md)


</td><td markdown="1">


</td></tr>
<tr><td markdown="1">

send


</td><td markdown="1">

[SocketIoSendMethod](./socketio.socketiosendmethod.md)


</td><td markdown="1">


</td></tr>
<tr><td markdown="1">

reject


</td><td markdown="1">

[SocketIoRejectMethod](./socketio.socketiorejectmethod.md)


</td><td markdown="1">


</td></tr>
</tbody></table>


