Constructors
constructor
- new Connection(socket): sharedb.Connection
Methods
createFetchQuery
- createFetchQuery(collectionName, query, options, callback): Query<any>
Parameters
- collectionName: string
- query: string
- options: Object
- callback: Object
Returns Query<any>
createSubscribeQuery
- createSubscribeQuery(collectionName, query, options, callback): Query<any>
Parameters
- collectionName: string
- query: string
- options: Object
- callback: Object
Returns Query<any>
get
- get(collectionName, documentID): Doc<any>
Parameters
- collectionName: string
- documentID: string
Returns Doc<any>
Deprecated
Use the
Connection
type from 'sharedb/lib/client' instead, as that's where it lives in the actual source code.