event-hyper-express
Advanced tools
Comparing version 6.5.6 to 6.5.7
{ | ||
"name": "event-hyper-express", | ||
"version": "6.5.6", | ||
"version": "6.5.7", | ||
"description": "High performance Node.js webserver with a simple-to-use API powered by uWebsockets.js under the hood.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
import { ReadableOptions } from 'stream'; | ||
import { EventEmitter } from 'events'; | ||
import { Request } from '../http/Request'; | ||
@@ -37,3 +38,3 @@ import { Response } from '../http/Response'; | ||
export class Router { | ||
export class Router extends EventEmitter { | ||
constructor(); | ||
@@ -40,0 +41,0 @@ |
@@ -79,2 +79,16 @@ import * as uWebsockets from 'uWebSockets.js'; | ||
/** | ||
* Resets the router's stack for dynamic reloading | ||
*/ | ||
deregister_routes(): void; | ||
/** | ||
* Resets the middleware stack for dynamic reloading | ||
*/ | ||
deregister_middleware(): void; | ||
/** | ||
* Returns the number of subscribers to a topic across all WebSocket connections on this Server instance. | ||
@@ -81,0 +95,0 @@ * |
208475
4977