hapi-plugin-websocket
hapi-plugin-websocket copied to clipboard
Improve types
Events such as connect/disconnect/error were typed as accepting full PluginState objects, but the mode property was missing.
The Request.websocket() method was typed as always returning a 'websocket' mode object, but it may return an 'http' mode as well.