Fixed heatbeat message not being valid json; now includes unix time too.
This commit is contained in:
parent
077fb751b5
commit
d0cb08c2df
1 changed files with 2 additions and 1 deletions
|
|
@ -211,7 +211,8 @@ export default class Stream extends EventEmitter<StreamEvents> implements IStrea
|
|||
}
|
||||
|
||||
public heartbeat(): void {
|
||||
this.stream.send('h');
|
||||
// Send a heartbeat message, with the current time so the server can echo it.
|
||||
this.send('hb', { time: Date.now() });
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue