forked from Ivasoft/mattermost-mobile
* Only call app entry on websocket reconnect * Handle notification on its own entry and run app entry on websocket initialization * Fix notification entry issues * Fix login entry and add retry on entry failure * feedback review * Put back handleEntryAfterLoadNavigation before the batching --------- Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
13 lines
366 B
TypeScript
13 lines
366 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {isMinimumServerVersion} from './helpers';
|
|
|
|
export function hasReliableWebsocket(config: ClientConfig) {
|
|
if (isMinimumServerVersion(config.Version, 6, 5)) {
|
|
return true;
|
|
}
|
|
|
|
return config.EnableReliableWebSockets === 'true';
|
|
}
|