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

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

[Home](./index.md) &gt; [@loopback/socketio](./socketio.md) &gt; [SocketIoServer](./socketio.socketioserver.md) &gt; [discoverAndRegister](./socketio.socketioserver.discoverandregister.md)

## SocketIoServer.discoverAndRegister() method

Discover all socket.io controllers and register routes

<b>Signature:</b>

```typescript
discoverAndRegister(): void;
```
<b>Returns:</b>

void


