Sha256: 58bd80d048e4914cf53b254ec7602b9a65fa22228de2521ec4610a6c9caee086

Contents?: true

Size: 561 Bytes

Versions: 71

Compression:

Stored size: 561 Bytes

Contents

module Volt
  class SocketConnectionHandlerStub
    def self.dispatcher=(val)
      @@dispatcher = val
    end

    def self.dispatcher
      @@dispatcher
    end

    def initialize(channel_stub)
      @channel_stub = channel_stub
    end

    # Sends a message to all, optionally skipping a users channel
    def self.send_message_all(skip_channel = nil, *args)
      # Stub
    end

    def process_message(message)
      @@dispatcher.dispatch(self, message)
    end

    def send_message(*args)
      @channel_stub.message_received(*args)
    end
  end
end

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
volt-0.9.7.pre8 lib/volt/server/socket_connection_handler_stub.rb
volt-0.9.7.pre7 lib/volt/server/socket_connection_handler_stub.rb
volt-0.9.7.pre6 lib/volt/server/socket_connection_handler_stub.rb
volt-0.9.7.pre5 lib/volt/server/socket_connection_handler_stub.rb
volt-0.9.7.pre3 lib/volt/server/socket_connection_handler_stub.rb
volt-0.9.7.pre2 lib/volt/server/socket_connection_handler_stub.rb
volt-0.9.6 lib/volt/server/socket_connection_handler_stub.rb
volt-0.9.6.pre3 lib/volt/server/socket_connection_handler_stub.rb
volt-0.9.6.pre2 lib/volt/server/socket_connection_handler_stub.rb
volt-0.9.6.pre1 lib/volt/server/socket_connection_handler_stub.rb
volt-0.9.5 lib/volt/server/socket_connection_handler_stub.rb
volt-0.9.5.pre12 lib/volt/server/socket_connection_handler_stub.rb
volt-0.9.5.pre11 lib/volt/server/socket_connection_handler_stub.rb
volt-0.9.5.pre9 lib/volt/server/socket_connection_handler_stub.rb
volt-0.9.5.pre8 lib/volt/server/socket_connection_handler_stub.rb
volt-0.9.5.pre7 lib/volt/server/socket_connection_handler_stub.rb
volt-0.9.5.pre6 lib/volt/server/socket_connection_handler_stub.rb
volt-0.9.5.pre5 lib/volt/server/socket_connection_handler_stub.rb
volt-0.9.5.pre4 lib/volt/server/socket_connection_handler_stub.rb
volt-0.9.5.pre3 lib/volt/server/socket_connection_handler_stub.rb