Constructor
new Listener(ref, isChild, cb, onceopt)
Create a Listener
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
ref |
object | The database reference. | |
isChild |
boolean | Set to true if its a single object listener, otherwise set to false for whole node listeners | |
cb |
function | callback for listener | |
once |
boolean |
<optional> |
set to true if you want to only call the listener once |
- Source:
Methods
listen()
Listen for changes
- Source: