CrdtRelayRoute constructor

CrdtRelayRoute(
  1. RelaySessionHost sessionHost, {
  2. Duration? pingInterval,
  3. bool allowAnyOrigin = false,
  4. Set<Method> methods = const {Method.get},
  5. String path = '/',
  6. String? host,
})

pingInterval is a WebSocket-level ping, which is not the protocol's own ping (Protocol.pingInterval); null keeps Relic's default. allowAnyOrigin lets a browser page on another host connect: by default a cross-origin upgrade gets a 403.

methods, path and host are the ones of Route.

Implementation

CrdtRelayRoute(
  this.sessionHost, {
  this.pingInterval,
  this.allowAnyOrigin = false,
  super.methods,
  super.path,
  super.host,
});