fix: make websocket driver callbacks public
This commit is contained in:
parent
26b87b9ead
commit
40cc1a4cf2
|
|
@ -57,6 +57,10 @@ module TurniereE2E
|
||||||
websocket_url
|
websocket_url
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def write(data)
|
||||||
|
socket.write(data)
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
attr_reader :base_url, :socket, :driver
|
attr_reader :base_url, :socket, :driver
|
||||||
|
|
@ -97,10 +101,6 @@ module TurniereE2E
|
||||||
"#{uri.scheme}://#{uri.host}:#{uri.port}"
|
"#{uri.scheme}://#{uri.host}:#{uri.port}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def write(data)
|
|
||||||
socket.write(data)
|
|
||||||
end
|
|
||||||
|
|
||||||
def pump_until_open!(timeout: 10)
|
def pump_until_open!(timeout: 10)
|
||||||
deadline = Time.now + timeout
|
deadline = Time.now + timeout
|
||||||
while Time.now < deadline
|
while Time.now < deadline
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue