Exception: Parse::LiveQuery::NotEnabledError
- Defined in:
- lib/parse/live_query.rb
Overview
Error raised when LiveQuery is used but the opt-in toggle has not been set. Opening a WebSocket is a network-egress action that the operator must consciously enable; we refuse to do it implicitly.
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize ⇒ NotEnabledError
constructor
A new instance of NotEnabledError.
Constructor Details
#initialize ⇒ NotEnabledError
Returns a new instance of NotEnabledError.
70 71 72 |
# File 'lib/parse/live_query.rb', line 70 def initialize super("LiveQuery must be explicitly enabled before opening a subscription. Set Parse.live_query_enabled = true") end |