PLT-5750 Add sequence number to websocket connections and events (#5907)
* Add sequence number to websocket connections and events * Copy pointer instead of pass by value and use int64 over uint64 * Add more logging to missed events
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
d39947f539
Коммит
95da05a8c9
@@ -61,6 +61,13 @@ export function initialize() {
|
||||
|
||||
WebSocketClient.setEventCallback(handleEvent);
|
||||
WebSocketClient.setFirstConnectCallback(handleFirstConnect);
|
||||
WebSocketClient.setReconnectCallback(() => reconnect(false));
|
||||
WebSocketClient.setMissedEventCallback(() => {
|
||||
if (global.window.mm_config.EnableDeveloper === 'true') {
|
||||
Client.logClientError('missed websocket event seq=' + WebSocketClient.eventSequence);
|
||||
}
|
||||
reconnect(false);
|
||||
});
|
||||
WebSocketClient.setCloseCallback(handleClose);
|
||||
WebSocketClient.initialize(connUrl);
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user