class WebSocket::EventMachine::Client

def self.connect_unix_domain(socketname, args = {})

Options Hash: (**args)
  • :headers (Hash) -- HTTP headers to use in the handshake
  • :version (Integer) -- Version of protocol to use(default = 13)

Parameters:
  • args (Hash) -- Arguments for connection
  • socketname (String) -- Unix domain socket (local fully-qualified path)
def self.connect_unix_domain(socketname, args = {})
  fail ArgumentError, 'invalid socket' unless File.socket?(socketname)
  args[:host] ||= 'localhost'
  ::EventMachine.connect_unix_domain socketname, self, args
end