Loggin'JS
WebSocket plugin forA websocket client notifier for Loggin'JS, powered by [socket.io](socket.io)
!! NOTICE !!
This plugin is still in it's early stages, and the API may change or have errors. If you find any errors or have sugestions please leave an issue
Table Of Content
Installing
- Install with npm
npm install loggin-js-ws --save
Importing
// Require the logging libraryconst loggin = ; // Require the express middlewareconst loggingWS = ;
Usage
Easiest way of using the notifier is:
// Register the pluginloggin; // Get the ws notifier, prebuiltlet wsNotifier = loggin; // Create default loggerlet logger = loggin; // Add wsNotifier to the loggerlogger;
Or you can also instantiate the notifier yourself:
const loggingWS = ; const wsNotifier = /* options */ ; logger;
You can also pass in a set of options, (in addition to the default Loggin'JS options):
let wsNotifier = loggin;
Found a bug?
If you found a bug or like to leave a feature request, please leave an issue and we will take care of it.
Just make sure it's not already filed.
Collaborating
Hi there, if you like the project don't hesitate in collaborating (if you like to), submit a pull request, post an issue, ...
Any help or ideas are apreciated!