@@ -9,7 +9,6 @@ const requests = require("./requests")
9
9
const PusherConfig = require ( "./pusher_config" )
10
10
const Token = require ( "./token" )
11
11
const WebHook = require ( "./webhook" )
12
- const NotificationClient = require ( "./notification_client" )
13
12
14
13
const validateChannel = function ( channel ) {
15
14
if (
@@ -52,10 +51,8 @@ const validateUserData = function (userData) {
52
51
* @constructor
53
52
* @param {Object } options
54
53
* @param {String } [options.host="api.pusherapp.com"] API hostname
55
- * @param {String } [options.notification_host="api.pusherapp.com"] Notification API hostname
56
54
* @param {Boolean } [options.useTLS=false] whether to use TLS
57
55
* @param {Boolean } [options.encrypted=false] deprecated; renamed to `useTLS`
58
- * @param {Boolean } [options.notification_encrypted=false] whether to use TLS for notifications
59
56
* @param {Integer } [options.port] port, default depends on the scheme
60
57
* @param {Integer } options.appId application ID
61
58
* @param {String } options.key application key
@@ -65,11 +62,6 @@ const validateUserData = function (userData) {
65
62
*/
66
63
function Pusher ( options ) {
67
64
this . config = new PusherConfig ( options )
68
- const notificationOptions = Object . assign ( { } , options , {
69
- host : options . notificationHost ,
70
- encrypted : options . notificationEncrypted ,
71
- } )
72
- this . notificationClient = new NotificationClient ( notificationOptions )
73
65
}
74
66
75
67
/** Create a Pusher instance using a URL.
@@ -237,10 +229,6 @@ Pusher.prototype.triggerBatch = function (batch) {
237
229
return events . triggerBatch ( this , batch )
238
230
}
239
231
240
- Pusher . prototype . notify = function ( ) {
241
- this . notificationClient . notify . apply ( this . notificationClient , arguments )
242
- }
243
-
244
232
/** Makes a POST request to Pusher, handles the authentication.
245
233
*
246
234
* Returns a promise resolving to a response, or rejecting to a RequestError.
0 commit comments