UNPKG

488 BPlain TextView Raw
1import { CompatClient } from './compat-client';
2
3/**
4 * Part of `@stomp/stompjs`.
5 *
6 * @internal
7 */
8export class HeartbeatInfo {
9 constructor(private client: CompatClient) {}
10
11 get outgoing(): number {
12 return this.client.heartbeatOutgoing;
13 }
14
15 set outgoing(value: number) {
16 this.client.heartbeatOutgoing = value;
17 }
18
19 get incoming(): number {
20 return this.client.heartbeatIncoming;
21 }
22
23 set incoming(value: number) {
24 this.client.heartbeatIncoming = value;
25 }
26}