pusher-chatkit-server
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "pusher-chatkit-server", | ||
"description": "Pusher ChatKit server library", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"main": "./build/index.js", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -35,4 +35,4 @@ import { Readable } from 'stream'; | ||
cluster: string; | ||
appId: string; | ||
appKey: string; | ||
instanceId: string; | ||
key: string; | ||
client?: BaseClient; | ||
@@ -52,3 +52,8 @@ }; | ||
constructor(pusherServiceConfig: Options) { | ||
this.pusherService = new PusherService(pusherServiceConfig); | ||
this.pusherService = new PusherService({ | ||
cluster: pusherServiceConfig.cluster, | ||
appId: pusherServiceConfig.instanceId, | ||
appKey: pusherServiceConfig.key, | ||
client: pusherServiceConfig.client | ||
}); | ||
} | ||
@@ -55,0 +60,0 @@ |
@@ -14,4 +14,4 @@ import { App as PusherService, BaseClient } from 'pusher-platform-node'; | ||
cluster: string; | ||
appId: string; | ||
appKey: string; | ||
instanceId: string; | ||
key: string; | ||
client?: BaseClient; | ||
@@ -18,0 +18,0 @@ } |
@@ -13,3 +13,8 @@ "use strict"; | ||
this.authorizerBasePath = 'services/chat_api_authorizer/v1'; | ||
this.pusherService = new pusher_platform_node_1.App(pusherServiceConfig); | ||
this.pusherService = new pusher_platform_node_1.App({ | ||
cluster: pusherServiceConfig.cluster, | ||
appId: pusherServiceConfig.instanceId, | ||
appKey: pusherServiceConfig.key, | ||
client: pusherServiceConfig.client | ||
}); | ||
} | ||
@@ -16,0 +21,0 @@ // Token generation |
Sorry, the diff of this file is not supported yet
62909
622