mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-05-06 04:18:03 +00:00
Fix reconnecting
This commit is contained in:
@@ -5,6 +5,8 @@ export function parseMessage(data: Data): Maybe<Message> {
|
||||
try {
|
||||
const message = JSON.parse(data.toString());
|
||||
|
||||
console.log(message);
|
||||
|
||||
if (message && typeof message.msg === 'string' && typeof message.ts === 'string') {
|
||||
message.ts = new Date(message.ts);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user