| 33 | } |
| 34 | |
| 35 | export interface ClientEventBusConfig { |
| 36 | /** |
| 37 | * Optional flag to indicate if the devtools server event bus is available to connect to. |
| 38 | * This is used to determine if the devtools can connect to the server for real-time event streams. |
| 39 | */ |
| 40 | connectToServerBus?: boolean |
| 41 | |
| 42 | /** |
| 43 | * Optional flag to enable debug mode for the event bus. |
| 44 | */ |
| 45 | debug?: boolean |
| 46 | |
| 47 | /** |
| 48 | * Optional port to connect to the devtools server event bus. |
| 49 | * Defaults to 4206. |
| 50 | */ |
| 51 | port?: number |
| 52 | |
| 53 | /** |
| 54 | * Optional host to connect to the devtools server event bus. |
| 55 | * Defaults to 'localhost'. |
| 56 | */ |
| 57 | host?: string |
| 58 | |
| 59 | /** |
| 60 | * Optional protocol to use for connecting to the devtools server event bus. |
| 61 | * Defaults to 'http'. Set to 'https' when the dev server uses HTTPS. |
| 62 | */ |
| 63 | protocol?: 'http' | 'https' |
| 64 | } |
| 65 | |
| 66 | export class ClientEventBus { |
| 67 | #port: number |
nothing calls this directly
no outgoing calls
no test coverage detected