Sha256: fd52cd1a822fbb4043bdc82b8eeb2cacbce2c32b490e77a740f7f5a743baa6c5
Contents?: true
Size: 351 Bytes
Versions: 10
Compression:
Stored size: 351 Bytes
Contents
var session = OT.initSession(sessionId), publisher = OT.initPublisher("publisher"); session.connect(apiKey, token, function(err, info) { if(err) { alert(err.message || err); } session.publish(publisher); }); session.on('streamCreated', function(event) { session.subscribe(event.stream, "subscribers", { insertMode : "append" }); });
Version data entries
10 entries across 10 versions & 1 rubygems