Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Flutter please... #22

Open
mysend12 opened this issue Sep 26, 2022 · 2 comments
Open

Support Flutter please... #22

mysend12 opened this issue Sep 26, 2022 · 2 comments

Comments

@mysend12
Copy link

This library does not support Flutter because it uses mirrors.
Please help us use it in Flutter.

Also, update support for the Dart library is very lacking. Since the library version is not specified, the dependent library has been updated, but RSocket does not follow the update, so there is also a version problem.

@sdack-cloud
Copy link

agree with @linux-china

@amondnet
Copy link

//import 'package:rsocket/shelf.dart' // mirror;
import 'package:rsocket/payload.dart';
import 'package:rsocket/rsocket_connector.dart';

void main() async {
  var rsocket =
  await RSocketConnector.create().connect('tcp://127.0.0.1:42252');

  var result = await rsocket.requestResponse!(Payload.fromText('text/plain', 'Ping'));
  print(result.getDataUtf8());
  /* rsocket.requestStream(Payload.fromText('Ping', '')).listen((payload) {
    print(payload.getDataUtf8());
  }, onDone: () {
    print('done');
  });*/
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants