forked from Ivasoft/mattermost-mobile
* Fix race condition when the same websocket gets initialized twice * Bump network library
13 lines
394 B
TypeScript
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';
|
|
}
|