Module: NewRelic::Security::WebSocket::Client::Simple

Defined in:
lib/newrelic_security/websocket-client-simple/client.rb

Defined Under Namespace

Classes: Client

Class Method Summary collapse

Class Method Details

.connect(url, options = {}) {|client| ... } ⇒ Object

Yields:

  • (client)


12
13
14
15
16
17
# File 'lib/newrelic_security/websocket-client-simple/client.rb', line 12

def self.connect(url, options={})
  client = NewRelic::Security::WebSocket::Client::Simple::Client.new
  yield client if block_given?
  client.connect url, options
  return client
end