UNPKG
ep_rocketchat
Version:
latest (0.0.3)
0.0.3
0.0.2
0.0.1
Integrating rocketchat with Etherpad
github.com/samirsayyad/ep_rocketchat
samirsayyad/ep_rocketchat
ep_rocketchat
/
rocketChat
/
api
/
subscription
/
room.js
13 lines
(10 loc)
•
246 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict'
;
class
Room
{
constructor
(
client
) {
this
.
client
= client; }
onChanged
(
roomId, onEventPublished
) {
this
.
client
.
subscribe
({
stream
:
'stream-room-messages'
,
event
: roomId}, onEventPublished); } }
module
.
exports
=
Room
;