class WebsocketController < WebsocketRails::BaseController
unless current_user.token == message[:token]
false # that here we need to do to stop the further execution?
class WorldsController < WebsocketController
From the documentation: If you call render, head or redirect_to from a before_action, the filter chain will be halted, but I have a different situation:
current_redirect_to and current_html_insert - are methods of controlling the behavior of the client through websockets,
they do not call methods render, head or ***redirect_to.***Please tell me how can I fix this problem.