OmnyShellHubService constructor

OmnyShellHubService(
  1. HubBroker broker, {
  2. String name = 'omnyshell',
  3. String mount = '/',
  4. FrameCodec codecFactory()?,
  5. bool ownsBroker = true,
})

Mounts broker as a service.

The default mount is /, which matches every path — the behaviour of a standalone OmnyShell Hub, whose listener upgrades a WebSocket regardless of path. Give it a specific mount (e.g. /shell) when sharing a listener.

Implementation

OmnyShellHubService(
  this.broker, {
  super.name = 'omnyshell',
  super.mount = '/',
  this.codecFactory,
  this.ownsBroker = true,
});