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.1.pre1 lib/volt/server/socket_connection_handler_stub.rb
volt-0.9.0 lib/volt/server/socket_connection_handler_stub.rb
volt-0.9.0.pre7 lib/volt/server/socket_connection_handler_stub.rb
volt-0.9.0.pre6 lib/volt/server/socket_connection_handler_stub.rb
volt-0.9.0.pre5 lib/volt/server/socket_connection_handler_stub.rb
volt-0.9.0.pre4 lib/volt/server/socket_connection_handler_stub.rb
volt-0.9.0.pre3 lib/volt/server/socket_connection_handler_stub.rb
volt-0.9.0.pre2 lib/volt/server/socket_connection_handler_stub.rb
volt-0.9.0.pre1 lib/volt/server/socket_connection_handler_stub.rb
volt-0.8.27.beta9 lib/volt/server/socket_connection_handler_stub.rb
volt-0.8.27.beta8 lib/volt/server/socket_connection_handler_stub.rb
volt-0.8.27.beta7 lib/volt/server/socket_connection_handler_stub.rb
volt-0.8.27.beta6 lib/volt/server/socket_connection_handler_stub.rb
volt-0.8.27.beta5 lib/volt/server/socket_connection_handler_stub.rb
volt-0.8.27.beta4 lib/volt/server/socket_connection_handler_stub.rb
volt-0.8.27.beta3 lib/volt/server/socket_connection_handler_stub.rb
volt-0.8.27.beta2 lib/volt/server/socket_connection_handler_stub.rb
volt-0.8.27.beta1 lib/volt/server/socket_connection_handler_stub.rb
volt-0.8.26.beta1 lib/volt/server/socket_connection_handler_stub.rb
volt-0.8.26 lib/volt/server/socket_connection_handler_stub.rb