Fix faulty API data format

This commit is contained in:
Konrad Hanff
2021-04-01 13:18:29 +02:00
committed by Sebastian Serth
parent 28f8de1a93
commit c36ec447ff
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ class ContainerConnection
EVENTS = %i[start output exit stdout stderr].freeze
def initialize(url)
@socket = Faye::WebSocket::Client.new(url, [], ping: 0.1)
@socket = Faye::WebSocket::Client.new(url, [], ping: 5)
%i[open message error close].each do |event_type|
@socket.on event_type do |event| __send__(:"on_#{event_type}", event) end