1 | const
|
2 | Kuzzle = require('./src/Kuzzle'),
|
3 | {
|
4 | Http,
|
5 | WebSocket,
|
6 | SocketIO
|
7 | } = require('./src/protocols'),
|
8 | BaseController = require('./src/controllers/base'),
|
9 | KuzzleAbstractProtocol = require('./src/protocols/abstract/common'),
|
10 | KuzzleEventEmitter = require('./src/eventEmitter');
|
11 |
|
12 | if (typeof window !== 'undefined' && typeof BUILT === 'undefined') {
|
13 | throw new Error('It looks like you are using the Nodejs version of Kuzzle SDK ' +
|
14 | 'in a browser. ' +
|
15 | 'It is strongly recommended to use the browser-specific build instead. ' +
|
16 | 'Learn more at https://github.com/kuzzleio/sdk-javascript/tree/master#browser');
|
17 | }
|
18 |
|
19 | module.exports = {
|
20 | Kuzzle,
|
21 | Http,
|
22 | WebSocket,
|
23 | SocketIO,
|
24 | BaseController,
|
25 | KuzzleAbstractProtocol,
|
26 | KuzzleEventEmitter
|
27 | };
|