Class: Webmate::Responders::Base

Inherits:
Abstract
  • Object
show all
Defined in:
lib/webmate/responders/base.rb

Instance Attribute Summary

Attributes inherited from Abstract

#action, #metadata, #params, #path, #request

Instance Method Summary collapse

Methods inherited from Abstract

#action_method, #async, #build_connection, #channel_active?, #channels_to_publish, #initialize, #process_action, #publish, #publish_to, #publisher, #render_not_found, #rescue_with_handler, #respond, #respond_with

Constructor Details

This class inherits a constructor from Webmate::Responders::Abstract

Instance Method Details

#_run_observer_callbacksObject



15
16
17
18
19
# File 'lib/webmate/responders/base.rb', line 15

def _run_observer_callbacks
  async do
    Webmate::Observers::Base.execute_all(action, @response)
  end
end

#_send_websocket_eventsObject



7
8
9
10
11
12
13
# File 'lib/webmate/responders/base.rb', line 7

def _send_websocket_events
  packet = Webmate::SocketIO::Packets::Message.new(@response.packed)

  #async do
  #  #Webmate::Websockets.publish(params[:channel], packet.to_packet)
  #end
end