lib/pakyow/realtime/framework.rb in pakyow-realtime-1.0.0.rc5 vs lib/pakyow/realtime/framework.rb in pakyow-realtime-1.0.0
- old
+ new
@@ -1,39 +1,39 @@
# frozen_string_literal: true
require "pakyow/framework"
-require "pakyow/realtime/helpers/broadcasting"
-require "pakyow/realtime/helpers/subscriptions"
-require "pakyow/realtime/helpers/socket"
+require "pakyow/application/helpers/realtime/broadcasting"
+require "pakyow/application/helpers/realtime/subscriptions"
+require "pakyow/application/helpers/realtime/socket"
-require "pakyow/realtime/behavior/config"
-require "pakyow/realtime/behavior/serialization"
-require "pakyow/realtime/behavior/server"
-require "pakyow/realtime/behavior/silencing"
+require "pakyow/application/config/realtime"
+require "pakyow/application/behavior/realtime/serialization"
+require "pakyow/application/behavior/realtime/server"
+require "pakyow/application/behavior/realtime/silencing"
-require "pakyow/realtime/behavior/rendering/install_websocket"
+require "pakyow/presenter/renderer/behavior/realtime/install_websocket"
module Pakyow
module Realtime
class Framework < Pakyow::Framework(:realtime)
def boot
object.class_eval do
- register_helper :active, Helpers::Broadcasting
- register_helper :active, Helpers::Subscriptions
- register_helper :passive, Helpers::Socket
+ register_helper :active, Application::Helpers::Realtime::Broadcasting
+ register_helper :active, Application::Helpers::Realtime::Subscriptions
+ register_helper :passive, Application::Helpers::Realtime::Socket
# Socket events are triggered on the app.
#
events :join, :leave
- include Behavior::Config
- include Behavior::Server
- include Behavior::Silencing
- include Behavior::Serialization
+ include Application::Config::Realtime
+ include Application::Behavior::Realtime::Server
+ include Application::Behavior::Realtime::Silencing
+ include Application::Behavior::Realtime::Serialization
isolated :Renderer do
- include Behavior::Rendering::InstallWebsocket
+ include Presenter::Renderer::Behavior::Realtime::InstallWebsocket
end
isolated :Connection do
after "initialize" do
set(:__socket_client_id, params[:socket_client_id] || Support::MessageVerifier.key)