To disable heartbeats in the reference implementation demo, you need to modify this line:
|
const fdc3Server = new DefaultFDC3Server(sc, directory, channelDetails, true, 20000, 10017); |
(set the 4th argument to the
DefaultFDC3Server constructor to
false).
Its looks like the DefaultFDC3Server parameters for heartbeats:
|
constructor( |
|
sc: ServerContext<AppRegistration>, |
|
directory: Directory, |
|
userChannels: ChannelState[], |
|
heartbeats: boolean, |
|
intentTimeoutMs: number = 20000, |
|
openHandlerTimeoutMs: number = 10000 |
|
) { |
could do with some work as they don't match those for the HeartbeatHandler, which you actually want to control:
|
constructor(pingInterval: number = 1000, disconnectedAfter: number = 5000, deadAfter: number = 20000) { |
The OpenHandlerTimeout has nothing to do with heartbeats and should not be being used to set the heartbeat times - we should have a different argument for this in the DefaultFDC3Server contructor!
Originally posted by @kriswest in #1675 (reply in thread)
To disable heartbeats in the reference implementation demo, you need to modify this line:
FDC3/toolbox/fdc3-for-web/demo/src/client/da/dummy-desktop-agent.ts
Line 144 in 9ad3c50
(set the 4th argument to the
DefaultFDC3Serverconstructor tofalse).Its looks like the DefaultFDC3Server parameters for heartbeats:
FDC3/toolbox/fdc3-for-web/fdc3-web-impl/src/BasicFDC3Server.ts
Lines 65 to 72 in 9ad3c50
could do with some work as they don't match those for the HeartbeatHandler, which you actually want to control:
FDC3/toolbox/fdc3-for-web/fdc3-web-impl/src/handlers/HeartbeatHandler.ts
Line 41 in 9ad3c50
The OpenHandlerTimeout has nothing to do with heartbeats and should not be being used to set the heartbeat times - we should have a different argument for this in the DefaultFDC3Server contructor!
Originally posted by @kriswest in #1675 (reply in thread)