Method: QueryTasks#remove_listener
- Defined in:
- app/volt/tasks/query_tasks.rb
#remove_listener(collection, query) ⇒ Object
Remove a listening channel, the LiveQuery will automatically remove itsself from the pool when there are no channels.
47 48 49 50 |
# File 'app/volt/tasks/query_tasks.rb', line 47 def remove_listener(collection, query) live_query = @@live_query_pool.lookup(collection, query) live_query.remove_channel(@channel) end |