lib/grumlin/transport.rb in grumlin-0.14.1 vs lib/grumlin/transport.rb in grumlin-0.14.2

- old
+ new

@@ -21,10 +21,10 @@ def connected? !@connection.nil? end def connect - raise "ClientClosed" if @closed + raise ClientClosedError if @closed raise AlreadyConnectedError if connected? @connection = Async::WebSocket::Client.connect(Async::HTTP::Endpoint.parse(@url), **@client_options) logger.debug(self) { "Connected to #{@url}." }