new Connection(projectRootopt, useFirebaseopt)
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
projectRoot |
string |
<optional> |
project root path, if needed, e.g. "rtest/mygame" or something |
useFirebase |
object |
<optional> |
firebase instance ("app") to use. Optional! |
- Source:
Methods
close()
close this connection, disconnect callbacks
- Source:
isConnected()
Is the system connected right now? (this can go up and down)
- Source:
isReady()
Is the system up and running correctly? Did we finish init and get some data at some point?
- Source:
onConnect()
set connect callback function
- Source:
onDisconnect()
set disconnect callback function
- Source:
ref()
get base firebase reference object
- Source: