instance method unsubscribe

Ruby on Rails edge

Since edge

Signature

unsubscribe(stream, callback)

No documentation comment.

Parameters

stream req
callback req
Source
# File actioncable/lib/action_cable/connection/test_case.rb, line 165
      def unsubscribe(stream, callback)
        @streams[stream].delete(callback)
        @streams.delete(stream) if @streams[stream].empty?
      end

Defined in actioncable/lib/action_cable/connection/test_case.rb line 165 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionCable::Connection::TestServer

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close