@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
73 lines (37 loc) • 1.26 kB
Markdown
---
lang: en
title: 'API docs: socketio.socketioconnectioncontext._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.socketioconnectioncontext._constructor_.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/socketio](./socketio.md) > [SocketIoConnectionContext](./socketio.socketioconnectioncontext.md) > [(constructor)](./socketio.socketioconnectioncontext._constructor_.md)
## SocketIoConnectionContext.(constructor)
Constructs a new instance of the `SocketIoConnectionContext` class
**Signature:**
```typescript
constructor(socket: Socket, parent: Context);
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
socket
</td><td markdown="1">
Socket
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
parent
</td><td markdown="1">
[Context](./context.context.md)
</td><td markdown="1">
</td></tr>
</tbody></table>