attach static method
Implementation
static ZapSubscriber attach(
Uri uri,
{Iterable<String>? protocols,
bool autoStart = true}
) {
final channel = WebSocketChannel.connect(uri, protocols: protocols);
final session = ChannelSession.fromWebSocketChannel(channel, uri);
return ZapSubscriber(session, autoStart: autoStart);
}