socketOptions property

List<RawSocketOption> socketOptions
getter/setter pair

The client supports the setting of both integer and boolean raw socket options as supported by the Dart IO library RawSocketOption class. Please consult the documentation for the above class before using this.

The socket options are set on both the initial connect and auto reconnect.

The client performs no sanity checking of the values provided, what values are set are passed on to the socket untouched, as such, care should be used when using this feature, socket options are usually platform specific and can cause numerous failures at the network level for the unwary.

Applicable only to TCP sockets

Implementation

List<RawSocketOption> socketOptions = <RawSocketOption>[];