This repository has been archived by the owner on Apr 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.js
72 lines (62 loc) · 2.55 KB
/
index.js
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
require('./src/cometd-header');
// There is a bit of namespacing in the cometd library - most parts assume an
// `org.cometd` namespace is available. For ease in keeping this library up to
// date with the official lib, a reference to `org` is added to the top of each
// file in place of the assumed global. As there are some interdependencies,
// the files are requested in a particular order:
// Files | Dependencies
// -------------------------+-----------------------------------
// Utils |
// TransportRegistry |
// |
// CometD | org.cometd.TransportRegistry
// | org.cometd.Utils
// |
// Transport | org.cometd.Utils
// |
// RequestTransport | org.cometd.Transport
// | org.cometd.Utils
// |
// CallbackPollingTransport | org.cometd.RequestTransport
// | org.cometd.Transport
// |
// LongPollingTransport | org.cometd.RequestTransport
// | org.cometd.Transport
// |
// WebSocketTransport | org.cometd.Utils
// | org.cometd.Transport
var org = require('./src/org');
require('./src/Utils');
require('./src/TransportRegistry');
require('./src/CometD');
require('./src/Transport');
require('./src/RequestTransport');
require('./src/CallbackPollingTransport');
require('./src/LongPollingTransport');
require('./src/WebSocketTransport');
var AckExtension = require('./src/extensions/AckExtension');
var ReloadExtension = require('./src/extensions/ReloadExtension');
var TimeStampExtension = require('./src/extensions/TimeStampExtension');
var TimeSyncExtension = require('./src/extensions/TimeSyncExtension');
exports.bindAckExtension = function() {
AckExtension(org);
return org;
};
exports.bindReloadExtension = function () {
ReloadExtension(org);
return org;
};
exports.bindTimeStampExtension = function() {
TimeStampExtension(org);
return org;
};
exports.bindTimeSyncExtension = function() {
TimeSyncExtension(org);
return org;
};
exports.CometD = org.cometd.CometD;
exports.Transport = org.cometd.Transport;
exports.RequestTransport = org.cometd.RequestTransport;
exports.CallbackPollingTransport = org.cometd.CallbackPollingTransport;
exports.LongPollingTransport = org.cometd.LongPollingTransport;
exports.WebSocketTransport = org.cometd.WebSocketTransport;