mirror of
https://gitlab.com/futo-org/fcast.git
synced 2025-08-21 14:52:50 +00:00
Receivers: Fixed connection monitor heartbeat
This commit is contained in:
parent
e8be1a5735
commit
2776bc398e
2 changed files with 6 additions and 4 deletions
|
@ -35,7 +35,7 @@ export class FCastSession {
|
|||
|
||||
send(opcode: number, message = null) {
|
||||
const json = message ? JSON.stringify(message) : null;
|
||||
logger.info(`send (opcode: ${opcode}, body: ${json})`);
|
||||
logger.info(`send: (session: ${this.sessionId}, opcode: ${opcode}, body: ${json})`);
|
||||
|
||||
let data: Uint8Array;
|
||||
if (json) {
|
||||
|
@ -164,7 +164,7 @@ export class FCastSession {
|
|||
}
|
||||
|
||||
private handlePacket(opcode: number, body: string | undefined) {
|
||||
logger.info(`handlePacket (opcode: ${opcode}, body: ${body})`);
|
||||
logger.info(`handlePacket: (session: ${this.sessionId}, opcode: ${opcode}, body: ${body})`);
|
||||
|
||||
try {
|
||||
switch (opcode) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue