Exception: Parse::LiveQuery::NotEnabledError

Inherits:
Error
  • Object
show all
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

#code

Instance Method Summary collapse

Constructor Details

#initializeNotEnabledError

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