dreamworkAPI
Ctrl K
GitHub
typeDocs / WebSocket / Options

WebSocket.Options

typesharedmenusource

Options applied when the socket is opened.

Headers, cookies, compression and verify_certificate are only used when the backend supports them, see WebSocket.Capabilities.

Fields

NameTypeDescription
headerstable<string, string> | nilExtra handshake headers (Capabilities.headers).
cookieshttp.CookieJar | nilCookie jar; matching cookies are sent in the Cookie header (Capabilities.headers).
verify_certificateboolean | nilVerify the TLS certificate (Capabilities.verify_certificate). Defaults to true.
compressionboolean | nilNegotiate permessage-deflate (Capabilities.compression).
reconnectboolean | WebSocket.ReconnectOptions | nilReconnect after the connection is lost or fails, true uses the defaults. Never after a local close.
close_timeoutnumber | nilSeconds a graceful close may take before the socket is terminated. Defaults to 5.
Generated from the dreamwork meta branch.