action_cable_client icon indicating copy to clipboard operation
action_cable_client copied to clipboard

Create wrapper gem or a persistent connection, based off of the relay_pool logic from meshchat

Open NullVoxPopuli opened this issue 9 years ago • 0 comments

https://github.com/NullVoxPopuli/meshchat-core/blob/master/lib/meshchat/network/remote/relay_pool.rb

Basically, this should just function like the ConnectionPool that rails uses. The behavior should be:

  • have at least a minimum number of connections
  • if a connection dies, start another one to reach minimum number of connections
  • if there is consistently no way to reach the minimum number of connections, log to the console, and try again in a minute, 2 minutes, 5 minutes, 10 minutes, and then stop trying.

NullVoxPopuli avatar May 19 '16 11:05 NullVoxPopuli