forked from kuzzleio/sdk-javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
25 lines (23 loc) · 778 Bytes
/
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
const
Kuzzle = require('./src/Kuzzle'),
{
Http,
WebSocket
} = require('./src/protocols'),
BaseController = require('./src/controllers/base'),
KuzzleAbstractProtocol = require('./src/protocols/abstract/common'),
KuzzleEventEmitter = require('./src/eventEmitter');
if (typeof window !== 'undefined' && typeof BUILT === 'undefined') {
throw new Error('It looks like you are using the Nodejs version of Kuzzle SDK ' +
'in a browser. ' +
'It is strongly recommended to use the browser-specific build instead. ' +
'Learn more at https://github.com/kuzzleio/sdk-javascript/tree/master#browser');
}
module.exports = {
Kuzzle,
Http,
WebSocket,
BaseController,
KuzzleAbstractProtocol,
KuzzleEventEmitter
};