Sha256: 29d2615c19bc35207e3ce500d977b0527039fcba0fa4e4f803d1aca37b26d4a6
Contents?: true
Size: 472 Bytes
Versions: 2
Compression:
Stored size: 472 Bytes
Contents
require 'hara/base' require 'json' Celluloid.logger = nil class FayeSocket attr_accessor :remote_ip def initialize @client_messages = [] @server_messages = [] end def alive? @alive end def close @alive = false end def read @server_messages.shift end def << message @client_messages << message end def client_read @client_messages.shift end def client_send message @server_messages << message end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hara-0.1.0 | spec/spec_helper.rb |
hara-0.0.2 | spec/spec_helper.rb |