@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
33 lines (21 loc) • 979 B
Markdown
lang: en
title: 'API docs: socketio.socketiocontrollerfactory.getcallback'
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.getcallback.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/socketio](./socketio.md) > [SocketIoControllerFactory](./socketio.socketiocontrollerfactory.md) > [getCallback](./socketio.socketiocontrollerfactory.getcallback.md)
## SocketIoControllerFactory.getCallback() method
<b>Signature:</b>
```typescript
getCallback(methodName: string): (...args: unknown[]) => Promise<void>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| methodName | string | |
<b>Returns:</b>
(...args: unknown\[\]) => Promise<void>