Skip to content

five-on-it / apps/client/electron/bridge / LocalHosting

Interface: LocalHosting ​

Defined in: apps/client/electron/bridge.ts:16

The local game server, as the main process finds it.

Properties ​

addresses ​

addresses: string[]

Defined in: apps/client/electron/bridge.ts:24

The machine's network addresses with the port (192.168.1.23:7777): what a friend types to join.


hosting ​

hosting: boolean

Defined in: apps/client/electron/bridge.ts:18

Whether a game server answers on the app's port: its own, or one of this version it joins.


level? ​

optional level?: string

Defined in: apps/client/electron/bridge.ts:22

The level its default room plays, while hosting.


url? ​

optional url?: string

Defined in: apps/client/electron/bridge.ts:20

Where the app plays on it (ws://127.0.0.1:<port>), while hosting.