Sha256: b4d64e166c8476447e41af8ce083e9f4eefac1f0148069c1a865632456442196
Contents?: true
Size: 554 Bytes
Versions: 7
Compression:
Stored size: 554 Bytes
Contents
module Envoy module Server class Channel attr_accessor :trunk, :web def initialize trunk, web, header @trunk = trunk @web = web @trunk.channels[id] = self @trunk.send_object :connection, id stream header end def stream data @trunk.send_object :stream, id, data end def message data @trunk.send_object :message, data end def id @id ||= SecureRandom.hex(4) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems