class Volt::SocketConnectionHandlerStub

Public Class Methods

dispatcher() click to toggle source
# File lib/volt/server/socket_connection_handler_stub.rb, line 7
def self.dispatcher
  @@dispatcher
end
dispatcher=(val) click to toggle source
# File lib/volt/server/socket_connection_handler_stub.rb, line 3
def self.dispatcher=(val)
  @@dispatcher = val
end
new(channel_stub) click to toggle source
# File lib/volt/server/socket_connection_handler_stub.rb, line 11
def initialize(channel_stub)
  @channel_stub = channel_stub
end
send_message_all(skip_channel = nil, *args) click to toggle source

Sends a message to all, optionally skipping a users channel

# File lib/volt/server/socket_connection_handler_stub.rb, line 16
def self.send_message_all(skip_channel = nil, *args)
  # Stub
end

Public Instance Methods

process_message(message) click to toggle source
# File lib/volt/server/socket_connection_handler_stub.rb, line 20
def process_message(message)
  @@dispatcher.dispatch(self, message)
end
send_message(*args) click to toggle source
# File lib/volt/server/socket_connection_handler_stub.rb, line 24
def send_message(*args)
  @channel_stub.message_received(*args)
end