Sha256: 801c3b7758e9d5ce0d30b0fbb13279056c968afe47a8b0d075ec6b1efbae3e2b

Contents?: true

Size: 502 Bytes

Versions: 33

Compression:

Stored size: 502 Bytes

Contents

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

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
volt-0.6.5 lib/volt/server/socket_connection_handler_stub.rb
volt-0.6.4 lib/volt/server/socket_connection_handler_stub.rb
volt-0.6.3 lib/volt/server/socket_connection_handler_stub.rb
volt-0.6.2 lib/volt/server/socket_connection_handler_stub.rb
volt-0.6.1 lib/volt/server/socket_connection_handler_stub.rb
volt-0.6.0 lib/volt/server/socket_connection_handler_stub.rb
volt-0.5.18 lib/volt/server/socket_connection_handler_stub.rb
volt-0.5.17 lib/volt/server/socket_connection_handler_stub.rb
volt-0.5.16 lib/volt/server/socket_connection_handler_stub.rb
volt-0.5.15 lib/volt/server/socket_connection_handler_stub.rb
volt-0.5.14 lib/volt/server/socket_connection_handler_stub.rb
volt-0.5.13 lib/volt/server/socket_connection_handler_stub.rb
volt-0.5.12 lib/volt/server/socket_connection_handler_stub.rb
volt-0.5.11 lib/volt/server/socket_connection_handler_stub.rb
volt-0.5.10 lib/volt/server/socket_connection_handler_stub.rb
volt-0.5.9 lib/volt/server/socket_connection_handler_stub.rb
volt-0.5.8 lib/volt/server/socket_connection_handler_stub.rb
volt-0.5.7 lib/volt/server/socket_connection_handler_stub.rb
volt-0.5.6 lib/volt/server/socket_connection_handler_stub.rb
volt-0.5.4 lib/volt/server/socket_connection_handler_stub.rb