method

close

rails latest stable - Class: ActionCable::Connection::Base
close(reason: nil, reconnect: true)
public

Close the WebSocket connection.