StaticreuseReturns an existing RemoteConsole for the given URL and timeout or creates a new one.
If a new one is created, it will be saved for later reuse.
The URL of the remote logger.
OptionalconnectTimeout: number = DEFAULT_TIMEOUTThe timeout in ms for a remote connection to be considered failed. Default is 1500.
Creates a new RemoteConsole and attempts to connect to the logger at the given URL.
The URL of the remote logger.
OptionalconnectTimeout: number = DEFAULT_TIMEOUTThe timeout in ms for a connection to be considered failed.
ReadonlydebugEmits a message with ID console.debug.
ReadonlydestroyDisconnects and destroys the RemoteConsole. Cannot be undone.
ReadonlyerrorEmits a message with ID console.error.
ReadonlyhasReturns true if the client has been disconnected for more than the connect timeout.
ReadonlyinfoEmits a message with ID console.info.
ReadonlylogEmits a message with ID console.log.
ReadonlywarnEmits a message with ID console.warn.
Connects to a remote socket.io server and logs messages to it.
In the root of the Git repository, there is a simple example server that listens for these messages and logs them to the local console.