OmnyShellHubService constructor
OmnyShellHubService(
- HubBroker broker, {
- String name = 'omnyshell',
- String mount = '/',
- FrameCodec codecFactory()?,
- 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,
});