@@ -43,6 +43,7 @@ def initialize(url:, protocols: nil, options: {})
4343 @endpoint = url
4444
4545 @ws_thread = Thread . new do
46+ # steep:ignore:start
4647 EM . run do
4748 @client ||= ::Faye ::WebSocket ::Client . new ( url , protocols , options )
4849
@@ -62,6 +63,7 @@ def initialize(url:, protocols: nil, options: {})
6263 handle_close ( close . code , close . reason )
6364 end
6465 end
66+ # steep:ignore:end
6567 end
6668 end
6769
@@ -120,7 +122,7 @@ def close(code: nil, reason: 'close from ruby_lib_core')
120122 # Default is just put a debug message.
121123 #
122124 def handle_open
123- ::Appium ::Logger . debug %W( #{ self . class } :open )
125+ ::Appium ::Logger . debug ( " #{ self . class } :open" )
124126 end
125127
126128 # Standard out by default
@@ -134,7 +136,7 @@ def handle_open
134136 # In general, users should override this handler to handle messages from the peer.
135137 #
136138 def handle_message_data ( data )
137- ::Appium ::Logger . debug %W( #{ self . class } :message #{ data } )
139+ ::Appium ::Logger . debug ( " #{ self . class } :message #{ data } " )
138140 $stdout << "#{ data } \n "
139141 end
140142
@@ -145,7 +147,7 @@ def handle_message_data(data)
145147 # Default is just put a error message.
146148 #
147149 def handle_error
148- ::Appium ::Logger . error %W( #{ self . class } :error )
150+ ::Appium ::Logger . error ( " #{ self . class } :error" )
149151 end
150152
151153 #
@@ -156,9 +158,11 @@ def handle_error
156158 # The methods also clear +client+ instance and stop the eventmachine which is called in initialising this class.
157159 #
158160 def handle_close ( code , reason )
159- ::Appium ::Logger . debug %W( #{ self . class } :close #{ code } #{ reason } )
161+ ::Appium ::Logger . debug ( " #{ self . class } :close #{ code } #{ reason } " )
160162 @client = nil
163+ # steep:ignore:start
161164 EM . stop
165+ # steep:ignore:end
162166 end
163167 end # module WebSocket
164168 end # module Core
0 commit comments