diff --git a/packages/websockets/src/Bootstrap/Container.ts b/packages/websockets/src/Bootstrap/Container.ts index e5507d983..9062207e5 100644 --- a/packages/websockets/src/Bootstrap/Container.ts +++ b/packages/websockets/src/Bootstrap/Container.ts @@ -1,4 +1,5 @@ import * as winston from 'winston' +import axios, { AxiosInstance } from 'axios' import Redis from 'ioredis' import * as AWS from 'aws-sdk' import { Container } from 'inversify' @@ -124,6 +125,7 @@ export class ContainerConfigLoader { .to(WebSocketMessageRequestedEventHandler) // Services + container.bind(TYPES.HTTPClient).toConstantValue(axios.create()) container .bind>(TYPES.CrossServiceTokenDecoder) .toConstantValue(new TokenDecoder(container.get(TYPES.AUTH_JWT_SECRET)))