setRememberUpgrade method

OptionBuilder setRememberUpgrade(
  1. bool rememberUpgrade
)

If true and if the previous WebSocket connection to the server succeeded, the connection attempt will bypass the normal upgrade process and will initially try WebSocket. A connection attempt following a transport error will use the normal upgrade process. It is recommended you turn this on only when using SSL/TLS connections, or if you know that your network does not block websockets. The default is false.

Implementation

OptionBuilder setRememberUpgrade(bool rememberUpgrade) {
  _opts['rememberUpgrade'] = rememberUpgrade;
  return this;
}