Sha256: 7551357e2ffba74df96414c02e2ea9b658a20fe1d286eea20b04b63a144ea736
Contents?: true
Size: 397 Bytes
Versions: 2
Compression:
Stored size: 397 Bytes
Contents
module EMJack module Handler class Using RESPONSE = /^USING\s+(.*)\r\n/ def self.handles?(response) response =~ RESPONSE end def self.handle(deferrable, response, body) return false unless response =~ RESPONSE deferrable.succeed($1) true end EMJack::Connection.register_handler(EMJack::Handler::Using) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
em-jack-0.0.6 | lib/em-jack/handlers/using.rb |
em-jack-0.0.5 | lib/em-jack/handlers/using.rb |