You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Attaches to the given transport, starts it, and starts listening for messages.
779
-
*
780
-
* The caller assumes ownership of the {@linkcode Transport}, replacing any callbacks that have already been set, and expects that it is the only user of the {@linkcode Transport} instance going forward.
778
+
* Throws if this instance is already bound to a transport. Called by
779
+
* {@linkcode Protocol.connect} and, earlier, by subclass connect
780
+
* overrides whose pre-connect work mutates per-connection state (see
781
+
* `Client.connect()`): the check must run before any of that work.
'Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.'
786
787
);
787
788
}
789
+
}
790
+
791
+
/**
792
+
* Attaches to the given transport, starts it, and starts listening for messages.
793
+
*
794
+
* The caller assumes ownership of the {@linkcode Transport}, replacing any callbacks that have already been set, and expects that it is the only user of the {@linkcode Transport} instance going forward.
0 commit comments