Page Contents

Home > @loopback/socketio > SocketIoServer

SocketIoServer class

A socketio server


export declare class SocketIoServer extends Context 

Extends: Context


Constructor Modifiers Description
(constructor)(app, options)   Constructs a new instance of the SocketIoServer class


Property Modifiers Type Description
app   Application  
config readonly HttpServerResolvedOptions  
listening readonly boolean  
options protected SocketIoServerOptions  
url readonly string  


Method Modifiers Description
controller(controllerClass)   Register a controller
discoverAndRegister()   Discover all controllers and register routes
route(controllerClass, meta)   Register a socketio controller
start()   Start the socketio server
stop()   Stop the socketio server
use(fn)   Register a middleware function