class XRBP::WebSocket::Prioritized
MultiConnection
strategy where connections are tried sequentially until one succeeds
Public Instance Methods
next_connection(prev=nil)
click to toggle source
Calls superclass method
XRBP::WebSocket::MultiConnection#next_connection
# File lib/xrbp/websocket/multi/prioritized.rb, line 6 def next_connection(prev=nil) return nil if prev == connections.last return super if prev.nil? connections[connections.index(prev)+1] end