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

Hey agnivade

Thanks for getting back to me! I appreciate the feedback/assistance in understanding the root cause of this issue; I had never worked with that webSocketClient before so its good to understand.

Since this issue exits directly in the sample code, should I add this as an issue to the repo or open a pull request there to resolve this?

Thanks again for your assistance and have a terrific day!