You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having an issue where my bot is sending several time the same message after a disconnection.
How to reproduce:
Here is a sample of my code:
realtime_client=Slack::RealTime::Client.newtoken: token,websocket_ping: 3# to fasten the deconnection detection, but not needed to triger the bugrealtime_client.on:hellodoputs'Ready to go!'endrealtime_client.on:messagedo |message|
puts'triggered'ifmessage.text == 'My message'endrealtime_client.start!
Then, launch the bot, trigger it: one message should happen.
Disconnect your laptop from internet, wait for the warning to come (so that the bot detects the deconnection) and reconnect.
Trigger the bot: it should be triggered twice instead of once.
My logs:
Ready to go!
triggered
W, [2021-01-29T19:01:23.481714 #87339] WARN -- id=T03L75GUK, name=__, domain=__: is offline
W, [2021-01-29T19:01:24.484552 #87339] WARN -- id=T03L75GUK, name=__, domain=__: is offline
Ready to go!
triggered
triggered
I'm having an issue where my bot is sending several time the same message after a disconnection.
How to reproduce:
Here is a sample of my code:
Then, launch the bot, trigger it: one message should happen.
Disconnect your laptop from internet, wait for the warning to come (so that the bot detects the deconnection) and reconnect.
Trigger the bot: it should be triggered twice instead of once.
My logs:
Hack
Disabling websocket pings fixes the issue:
The text was updated successfully, but these errors were encountered: