lib/eth/client/ipc.rb
# Sends an RPC request to the connected IPC socket.
#
# @param payload [Hash] the RPC request parameters.
# @return [String] a JSON-encoded response.
Sends an RPC request to the connected IPC socket.
Sends an RPC request to the connected IPC socket .
def send(payload)
      socket = UNIXSocket.new(@path)
      socket.puts(payload)
      read = socket.recvmsg(nil)[0]
      until read.end_with?("\n")
        read = read << socket.recvmsg(nil)[0]
      end
      socket.close
      return read
    end
def send ( payload ) socket = UNIXSocket . new ( @path ) socket . puts ( payload ) read = socket . recvmsg ( nil ) [ 0 ] until read . end_with? ( "\n" ) read = read << socket . recvmsg ( nil ) [ 0 ] end socket . close return read end
Sends an RPC request to the connected IPC socket.
Sends an RPC request to the connected IPC socket .
a JSON-encoded response.
a JSON - encoded response .
String
payload
the RPC request parameters.
the RPC request parameters .