Sha256: 5e30f07fc00225c3b7a158c0b83a89d8cdf8198866482e25a5a18fe809cb8773

Contents?: true

Size: 382 Bytes

Versions: 11

Compression:

Stored size: 382 Bytes

Contents

module PipeRpc
  class Hub
    def initialize(args)
      @channel = args[:input]
      @socket = Socket.new(self, args)
      @requests = Requests.new(self)
      @servers = Servers.new
      @clients = Clients.new(self)
    end

    attr_reader :channel, :servers, :clients, :requests, :socket

    def handle_message
      Message.new(self, @socket.read).handle
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
pipe_rpc-2.3.0 lib/pipe_rpc/hub.rb
pipe_rpc-2.2.3 lib/pipe_rpc/hub.rb
pipe_rpc-2.2.2 lib/pipe_rpc/hub.rb
pipe_rpc-2.2.1 lib/pipe_rpc/hub.rb
pipe_rpc-2.2.0 lib/pipe_rpc/hub.rb
pipe_rpc-2.1.0 lib/pipe_rpc/hub.rb
pipe_rpc-2.0.0 lib/pipe_rpc/hub.rb
pipe_rpc-1.1.2 lib/pipe_rpc/hub.rb
pipe_rpc-1.1.1 lib/pipe_rpc/hub.rb
pipe_rpc-1.1.0 lib/pipe_rpc/hub.rb
pipe_rpc-1.0.0 lib/pipe_rpc/hub.rb