Module: DRb
- Defined in:
- lib/opal/drb.rb,
lib/opal/drb/drb.rb,
lib/opal/drb/drb_conn.rb,
lib/opal/drb/websocket.rb,
lib/opal/drb/drb_object.rb,
lib/opal/drb/drb_server.rb,
lib/opal/drb/drb_message.rb,
lib/opal/drb/drb_protocol.rb
Defined Under Namespace
Modules: DRbProtocol, DRbUndumped, WebSocket
Classes: DRbArray, DRbBadScheme, DRbBadURI, DRbConn, DRbConnError, DRbError, DRbMessage, DRbObject, DRbRemoteError, DRbServer, DRbServerNotFound, DRbUnknown, DRbUnknownError
Class Method Summary
collapse
Class Method Details
.current_server ⇒ Object
107
108
109
|
# File 'lib/opal/drb/drb.rb', line 107
def self.current_server
@callback_server
end
|
.default_config ⇒ Object
115
116
117
118
119
120
|
# File 'lib/opal/drb/drb.rb', line 115
def self.default_config
{
argc_limit: 256,
load_limit: 256 * 102400
}
end
|
.start_service(uri) ⇒ Object
111
112
113
|
# File 'lib/opal/drb/drb.rb', line 111
def self.start_service(uri)
@callback_server = DRbServer.new(uri, {})
end
|
.to_id(obj) ⇒ Object
103
104
105
|
# File 'lib/opal/drb/drb.rb', line 103
def self.to_id(obj)
obj.nil? ? nil : obj.__id__
end
|
.to_obj(ref) ⇒ Object
99
100
101
|
# File 'lib/opal/drb/drb.rb', line 99
def self.to_obj(ref)
DRb::DRbObject.id2ref[ref]
end
|