Heartbeat/Panic issues when using the mattermost sample bot and mattermost docker preview image

This seems like an incorrect usage of the library. The client should never directly interact with the Conn object. But only use the methods exposed by the type.

Unfortunately, due to compatibility reasons, we cannot unexport the Conn, and therefore cases like these remain.

In this case, we can just remove the heartbeat logic since that is already done by the client behind the scenes.

1 Like