Sha256: b44609556c7f04ccfee0fe1a5009fe744feb4fe547c53e16eda0bccb30c8083f

Contents?: true

Size: 416 Bytes

Versions: 12

Compression:

Stored size: 416 Bytes

Contents

require 'digest'

require 'ganymed/websocket'

module Ganymed
  class Websocket
    module Metadata
      def self.included(base)
        base.command :metadata
      end

      def metadata(data=nil)
        metadata = db['metadata'].find()
        send(:metadata, metadata)
      rescue Exception => exc
        log.warn("failed to send metadata to #{peer}")
        log.exception(exc)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ganymed-0.3.4 lib/ganymed/websocket/metadata.rb
ganymed-0.3.3 lib/ganymed/websocket/metadata.rb
ganymed-0.3.2 lib/ganymed/websocket/metadata.rb
ganymed-0.3.1 lib/ganymed/websocket/metadata.rb
ganymed-0.3.0 lib/ganymed/websocket/metadata.rb
ganymed-0.2.3 lib/ganymed/websocket/metadata.rb
ganymed-0.2.2 lib/ganymed/websocket/metadata.rb
ganymed-0.2.1 lib/ganymed/websocket/metadata.rb
ganymed-0.2.0 lib/ganymed/websocket/metadata.rb
ganymed-0.1.2 lib/ganymed/websocket/metadata.rb
ganymed-0.1.1 lib/ganymed/websocket/metadata.rb
ganymed-0.1.0 lib/ganymed/websocket/metadata.rb