tanutapi / dart_meteor

A Meteor DDP library for Dart/Flutter developers.
Other
37 stars 15 forks source link

Feature: user agent #40

Closed itxtoledo closed 3 years ago

itxtoledo commented 3 years ago

This simple PR add user-agent to dart_meteor instead of using the default of the dart itself which is Dart/2.15 (dart:io).

You can set your own custom user agent like "Awesome iOS App" or leave new field empty to use the default value "Dart Meteor / X.X.X";

MeteorClient.connect(url: 'https://your-awesome-meteor-app.com', userAgent: 'Awesome iOS App')...

Ref: https://api.flutter.dev/flutter/dart-io/WebSocket/userAgent.html