userAgent属性

String? userAgent

获取用于WebSocket连接的用户代理。

实现

static String? get userAgent => _WebSocketImpl.userAgent;
void userAgent=(String? userAgent)

设置用于WebSocket连接的用户代理。

实现

static set userAgent(String? userAgent) {
  _WebSocketImpl.userAgent = userAgent;
}