|
|
@ -3,6 +3,7 @@ const path = require('path') |
|
|
|
|
|
|
|
/** |
|
|
|
* @module local-web-server |
|
|
|
* @emits module:local-web-server#verbose |
|
|
|
* @example |
|
|
|
* const LocalWebServer = require('local-web-server') |
|
|
|
* const localWebServer = new LocalWebServer() |
|
|
@ -52,6 +53,14 @@ class LocalWebServer extends Lws { |
|
|
|
stack: require('./default-stack') |
|
|
|
}, options) |
|
|
|
return super.listen(options) |
|
|
|
|
|
|
|
/** |
|
|
|
* Highly-verbose debug information event stream. |
|
|
|
* |
|
|
|
* @event module:local-web-server#verbose |
|
|
|
* @param key {string} - An identifying string, e.g. `server.socket.data`. |
|
|
|
* @param value {*} - The value, e.g. `{ socketId: 1, bytesRead: '3 Kb' }`. |
|
|
|
*/ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|