@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
28 lines (18 loc) • 728 B
Markdown
lang: en
title: 'API docs: socketio.socketio.connect'
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.socketio.connect.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/socketio](./socketio.md) > [socketio](./socketio.socketio.md) > [connect](./socketio.socketio.connect.md)
## socketio.connect() function
Decorate a controller method for `connect`
<b>Signature:</b>
```typescript
function connect(): MethodDecorator;
```
<b>Returns:</b>
MethodDecorator