mirror of
https://github.com/element-hq/element-web
synced 2024-10-26 04:35:55 +03:00
Fix eventListener warning
Bump up maxEventListeners on the MatrixClient to shut up the warning about leaks.
This commit is contained in:
parent
721ae68aa4
commit
3e44d7307f
1 changed files with 6 additions and 1 deletions
|
@ -50,6 +50,11 @@ function createClientForPeg(hs_url, is_url, user_id, access_token, guestAccess)
|
|||
}
|
||||
|
||||
matrixClient = Matrix.createClient(opts);
|
||||
|
||||
// we're going to add eventlisteners for each matrix event tile, so the
|
||||
// potential number of event listeners is quite high.
|
||||
matrixClient.setMaxListeners(500);
|
||||
|
||||
if (guestAccess) {
|
||||
console.log("Guest: %s", guestAccess.isGuest());
|
||||
matrixClient.setGuest(guestAccess.isGuest());
|
||||
|
|
Loading…
Reference in a new issue