Sha256: 7ffb95fcad4c6fe22a8e4bcdb7ef18e99fa97286c81ac0ecc72cf6fd16be6819
Contents?: true
Size: 436 Bytes
Versions: 1
Compression:
Stored size: 436 Bytes
Contents
require 'hara/base' Celluloid.logger = nil class FayeHandshake def headers_downcased {'host' => 'localhost:8080'} end end class FayeSocket attr_accessor :remote_ip def initialize @client_messages = [] @server_messages = [] end def alive? @alive end def close @alive = false end def send message @client_messages << message end def client_read @client_messages.shift end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hara-0.2.0 | spec/spec_helper.rb |