Class: DRb::WebSocket::ServerSide
- Inherits:
-
Object
- Object
- DRb::WebSocket::ServerSide
- Defined in:
- lib/opal/drb/websocket.rb
Instance Attribute Summary collapse
-
#reply ⇒ Object
readonly
Returns the value of attribute reply.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
- #alive? ⇒ Boolean
- #close ⇒ Object
-
#initialize(stream, config, uri) ⇒ ServerSide
constructor
A new instance of ServerSide.
- #recv_request ⇒ Object
- #send_reply(succ, result) ⇒ Object
Constructor Details
#initialize(stream, config, uri) ⇒ ServerSide
Returns a new instance of ServerSide.
222 223 224 225 226 227 |
# File 'lib/opal/drb/websocket.rb', line 222 def initialize(stream, config, uri) @uri = uri @config = config @msg = DRbMessage.new(@config) @req_stream = stream end |
Instance Attribute Details
#reply ⇒ Object (readonly)
Returns the value of attribute reply.
220 221 222 |
# File 'lib/opal/drb/websocket.rb', line 220 def reply @reply end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
220 221 222 |
# File 'lib/opal/drb/websocket.rb', line 220 def uri @uri end |
Instance Method Details
#alive? ⇒ Boolean
232 |
# File 'lib/opal/drb/websocket.rb', line 232 def alive?; false; end |
#close ⇒ Object
229 230 |
# File 'lib/opal/drb/websocket.rb', line 229 def close end |
#recv_request ⇒ Object
234 235 236 237 238 239 240 241 |
# File 'lib/opal/drb/websocket.rb', line 234 def recv_request begin @msg.recv_request(@req_stream) rescue close raise $! end end |