Question continue

Thank you @Anton Kosyakov, and sorry, i don’t know why i cann’t reply in my post. So i continue my question here. You said Theia uses web socket ping/pong and if there is no response in 30s the connection is closed. But how can my Widget know there is no response? Is there any APIs can use?

[original thread by PeimingMo]

There is ConnectionStatusService: https://github.com/eclipse-theia/theia/blob/7217b4f9234fd36c4fdcf1491b26f1032ff17526/packages/core/src/browser/connection-status-service.ts#L28 which is used to display offline status bar for instance