-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconnection.js
More file actions
35 lines (28 loc) · 797 Bytes
/
connection.js
File metadata and controls
35 lines (28 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/**
* The connection object is a generic way of handling getting data to and from the grid.
* it allows new methods of getting and posting data without having to hack apart the
* grid to make it work.
*/
export class Connection {
constructor( options ) {
this._type = '';
}
close() {
}
/**
* make a request to the server for data
* @param {Object} options - an object containing all the options that are needed
* @return {Promise} - all requests for data should return a promise so we
* can change events after the requests return.
*/
send( options ) {
}
receive() {
}
get type() {
return this._type;
}
set type( value ) {
this._type = value;
}
}