universal-event-listening
v1.0.0
Published
Event listening for EVERY event listener!
Readme
universal-event-listening (UEL)
Event listening for EVERY event listener!
COMPATABILITY WITH socket.io
import { Server } from "socket.io"
import UEL from "universal-event-listening"
const io = new Server()
UEL.on(io, "connect", ...)
UEL.emit(io, "hello", "world")
UEL.send(io, "Hi!")COMPATABILITY WITH engine.io
Since engine.io is the backbone of socket.io, UEL also supports engine.io!
NOTE: engine.io does NOT have a send(...) function, UEL uses emit("message", ...)
COMPATABILITY WITH socket.io-client AND engine.io-client
UEL also supports socket.io-client and engine.io-client!
COMPATABILITY WITH rmtrollbot
Since rmtrollbot has send and emit, UEL supports rmtrollbot!
NOTE: rmtrollbot does NOT have a built-in on function, this could probably be fixed later
COMPATABILITY WITH YAEL (yet-another-event-listener)
YAEL is basically another event listener, so it works.
COMPATABILITY WITH OTHER EVENT LISTENERS
To be completely UEL quailified. You must meet these specific conditions:
- Must have
send,emit, andonfunctions. - Should be a class to initialize the event listener.
- Should have the text "UEL please qualify" on the README, this does however not apply to packages with over 100 downloads a week.
NOTE: If condition 1 is NOT (completely) met, then it will be classified as loosely UEL qualified. NOTE 2: Every condition (excluding 1) will need to be strictly met, or else, your "event listener" won't be UEL qualified
SHIELDS/BADGES
Only put these if you are UEL Qualified, Loosely UEL Qualified, or Not UEL Qualified respectively, these are only available to be put on when UEL checks your package as one of those 3.
UEL QUALIFIED
CODE
PREVIEW
LOOSELY UEL QUALIFIED
CODE
PREVIEW
NOT UEL QUALIFIED
CODE
