accept method
Waits for the next incoming session request.
Implementation
Future<WebTransportSessionRequest> accept() async {
if (_disposed) {
throw StateError('the server was disposed');
}
final event = await nativeRuntime.oneShot(
'wt_server_accept',
(opId) => b.wt_server_accept(_handle, opId),
);
if (!event.isOk) throw event.exception('accept');
return WebTransportSessionRequest._(event.handle.cast());
}