@stomp/stompjs
Version:
STOMP client for Javascript and Typescript
27 lines (21 loc) • 491 B
text/typescript
import { CompatClient } from './compat-client.js';
/**
* Part of `@stomp/stompjs`.
*
* @internal
*/
export class HeartbeatInfo {
constructor(private client: CompatClient) {}
get outgoing(): number {
return this.client.heartbeatOutgoing;
}
set outgoing(value: number) {
this.client.heartbeatOutgoing = value;
}
get incoming(): number {
return this.client.heartbeatIncoming;
}
set incoming(value: number) {
this.client.heartbeatIncoming = value;
}
}