StreamingSession constructor

StreamingSession({
  1. required Server server,
  2. required Uri uri,
  3. required HttpRequest httpRequest,
  4. required WebSocket webSocket,
  5. 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'];
}