accept method
Completes the handshake.
Implementation
void accept({String? protocol}) {
if (_accepted || _ended) return;
_accepted = true;
_later(() => _listener.onOpen(protocol));
}
Completes the handshake.
void accept({String? protocol}) {
if (_accepted || _ended) return;
_accepted = true;
_later(() => _listener.onOpen(protocol));
}