Page Contents
Home > @loopback/socketio > socketio
socketio namespace
Signature:
export declare namespace socketio
Functions
| Function | Description |
| — | — |
| connect() | Decorate a controller method for connect
|
| disconnect() | Decorate a controller method for disconnect
|
| io() | |
| namespace(name) | |
| socket() | |
| subscribe(messageTypes) | <p>Decorate a method to subscribe to socketio events. For example,</p>
@socketio.subscribe('chat message')
async function onChat(msg: string) {
}
|