onCapsuleReceived method
Process an incoming capsule belonging to sessionId.
Implementation
void onCapsuleReceived(int sessionId, Capsule capsule) {
final session = _webTransportSessions[sessionId];
if (session != null) {
session.onCapsule(capsule);
}
if (capsule is CloseWebTransportSessionCapsule) {
_webTransportSessions.remove(sessionId);
}
}