IGenvidConfig¶
-
class
genvidConfig.
IGenvidConfig
()¶ Properties
-
genvidConfig.IGenvidConfig.
console
¶ A console used for logging.
Default to the standard console.
Type: false | undefined | null | Console
-
genvidConfig.IGenvidConfig.
framePerSeconds
¶ Number of time per second the
onDraw()
is checked.Default is 30.
Type: number
-
genvidConfig.IGenvidConfig.
newWebsocket
¶ WebSocket constructor function override used to instantiate the Websocket connection. Must be a function that returns an instance of a class implementing the same functionalities as the browser’s WebSocket. By default, the browser WebSocket will be used. (needed if using this library from node)
Type: (host: string, protocols: string | string []) => WebSocket
-
genvidConfig.IGenvidConfig.
websocketConnectionTimeout
¶ Timeout in seconds before the websocket open get a timeout.
Default to 30 seconds.
Type: number
-
genvidConfig.IGenvidConfig.
window
¶ Window object override Defaults to browser’s window object (needed if using this library from node)
Type: Window
-