userAgent property

String? userAgent
getter/setter pair

User agent for websockets on dart:io, set globally on WebSocket.userAgent.

Null (default) leaves the app's user agent untouched. Pass RequestDefaults.DEFAULT_USER_AGENT to identify as NDK.

Implementation

String? userAgent;