Class: VRTQL::WS::Connection
- Inherits:
-
Object
- Object
- VRTQL::WS::Connection
- Defined in:
- doc/vrtql.rb
Instance Method Summary collapse
-
#close ⇒ nil
Closes the connection.
-
#connect(url) ⇒ Boolean
Connects to a specified host URL.
-
#connected? ⇒ Boolean
Checks if the connection is established.
-
#initialize ⇒ VRTQL::Websocket::Connection
constructor
Initializes the Connection object.
-
#recv_frame ⇒ VRTQL::Websocket::Frame?
Receives a WebSocket frame from the connection.
-
#recv_message ⇒ VRTQL::Websocket::Message?
Receives a message from the connection.
-
#send_binary(value) ⇒ Integer
Sends a binary message via the WebSocket connection.
-
#send_text(text) ⇒ Integer
Sends a text message via the WebSocket connection.
-
#set_timeout(timeout) ⇒ nil
Sets the timeout for the WebSocket connection.
Constructor Details
#initialize ⇒ VRTQL::Websocket::Connection
Initializes the Connection object
170 171 172 |
# File 'doc/vrtql.rb', line 170 def initialize # Implementation here... end |
Instance Method Details
#close ⇒ nil
Closes the connection
192 193 194 |
# File 'doc/vrtql.rb', line 192 def close # Implementation here... end |
#connect(url) ⇒ Boolean
Connects to a specified host URL
178 179 180 |
# File 'doc/vrtql.rb', line 178 def connect(url) # Implementation here... end |
#connected? ⇒ Boolean
Checks if the connection is established
185 186 187 |
# File 'doc/vrtql.rb', line 185 def connected? # Implementation here... end |
#recv_frame ⇒ VRTQL::Websocket::Frame?
Receives a WebSocket frame from the connection
frame was received
216 217 218 |
# File 'doc/vrtql.rb', line 216 def recv_frame # Implementation here... end |
#recv_message ⇒ VRTQL::Websocket::Message?
Receives a message from the connection
message was received
224 225 226 |
# File 'doc/vrtql.rb', line 224 def # Implementation here... end |
#send_binary(value) ⇒ Integer
Sends a binary message via the WebSocket connection
208 209 210 |
# File 'doc/vrtql.rb', line 208 def send_binary(value) # Implementation here... end |
#send_text(text) ⇒ Integer
Sends a text message via the WebSocket connection
200 201 202 |
# File 'doc/vrtql.rb', line 200 def send_text(text) # Implementation here... end |
#set_timeout(timeout) ⇒ nil
Sets the timeout for the WebSocket connection
232 233 234 |
# File 'doc/vrtql.rb', line 232 def set_timeout(timeout) # Implementation here... end |