Client# defaults

The default settings for the client.

Namespaces

modules
options

Methods

(static) proxy(options) → {Object}

A function to proxy kahoot.js-latests's http requests
Parameters:
NameTypeDescription
optionsObjectThe default HTTP Request options used by Kahoot.js
Returns:
The modified HTTP Request options to proxy the request.
Type: 
Object

(static) wsproxy(url) → {Client#defaults.wsproxy.WsProxyReturn}

A function to proxy kahoot.js-latests's websocket requests
Parameters:
NameTypeDescription
urlStringThe default websocket URI that Kahoot.JS sends the socket to.
Returns:
WS Options used to create the proxied socket. You may also return a WebSocket itself. See Documentation.md
Type: 
Client#defaults.wsproxy.WsProxyReturn