parent
56987ae761
commit
157b32fe79
|
@ -3,6 +3,13 @@
|
|||
var driver = RocketChat.driver;
|
||||
var api = RocketChat.api;
|
||||
|
||||
driver.useLog({
|
||||
debug: ()=>{},
|
||||
info: ()=>{},
|
||||
warn: x => onError(x, 'Rocket.chat Warning'),
|
||||
error: x => onError(x, 'Rocket.chat Error')
|
||||
});
|
||||
|
||||
await driver.connect();
|
||||
await driver.login(); // using environment variables
|
||||
await driver.subscribeToMessages();
|
||||
|
|
Loading…
Reference in New Issue