pusher-js
Version:
Pusher Channels JavaScript library for browsers, React Native, NodeJS and web workers
15 lines (12 loc) • 409 B
text/typescript
import Pusher from './pusher';
import { Options } from './options';
import * as nacl from 'tweetnacl';
export default class PusherWithEncryption extends Pusher {
constructor(app_key: string, options?: Options) {
Pusher.logToConsole = PusherWithEncryption.logToConsole;
Pusher.log = PusherWithEncryption.log;
options = options || {};
options.nacl = nacl;
super(app_key, options);
}
}