UNPKG

ep_rocketchat

Version:
17 lines (11 loc) 364 B
'use strict'; function Realtime(client) { this.client = client; } Realtime.prototype.joinChannel = function (roomId, callback) { this.client.request('method', 'joinRoom', [roomId], callback); }; Realtime.prototype.leaveChannel = function (roomId, callback) { this.client.request('method', 'leaveRoom', [roomId], callback); }; module.exports = Realtime;