Methods
once(Event, callback)
- Source:
Wait for the next event to occur
Parameters:
| Name | Type | Description |
|---|---|---|
Event |
string | ('readable'|'writable'|'disconnect') |
callback |
function |
poll(eventFlag)
- Source:
Ask the bindings to listen for an event
Parameters:
| Name | Type | Description |
|---|---|---|
eventFlag |
EVENTS |
stop()
- Source:
Stop listening for events and cancel all outstanding listening with an error