StreamingSession constructor
StreamingSession({
- required Server server,
- required Uri uri,
- required HttpRequest httpRequest,
- required WebSocket webSocket,
- bool enableLogging = true,
Creates a new Session for the web socket stream.
Implementation
StreamingSession({
required super.server,
required this.uri,
required this.httpRequest,
required this.webSocket,
super.enableLogging = true,
}) {
// Read query parameters
var queryParameters = <String, String>{};
queryParameters.addAll(uri.queryParameters);
this.queryParameters = queryParameters;
// Get the the authentication key, if any
_authenticationKey = queryParameters['auth'];
}