Files
mattermost-mobile/app/utils/config.ts
Daniel Espino García 5ccf45622d Fix race condition when the same websocket gets initialized twice (#7185)
* Fix race condition when the same websocket gets initialized twice

* Bump network library
2023-03-07 19:11:28 +01:00

13 lines
394 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {isMinimumServerVersion} from './helpers';
export function hasReliableWebsocket(version?: string, reliableWebsocketsConfig?: string) {
if (version && isMinimumServerVersion(version, 6, 5)) {
return true;
}
return reliableWebsocketsConfig === 'true';
}