1 | const Server = require('./lib/server');
|
2 | const Client = require('./lib/client');
|
3 |
|
4 | module.exports = function attachHttpTransport(skinny, options) {
|
5 | ;
|
6 |
|
7 | skinny.actionsHttpServer = new Server(skinny, options);
|
8 |
|
9 | skinny.on('*initialize', function *initializeActionsHttpServer() {
|
10 | yield skinny.actionsHttpServer.listen();
|
11 | });
|
12 |
|
13 | skinny.on('*shutdown', function *shutdownActionsHttpServer() {
|
14 | yield skinny.actionsHttpServer.close();
|
15 | });
|
16 | }; |
\ | No newline at end of file |