flutter / website

Flutter documentation web site
https://docs.flutter.dev
Other
2.83k stars 3.23k forks source link

Usage of Websocket, STOMP in flutter application #1289

Closed srivanigorthi closed 1 year ago

srivanigorthi commented 6 years ago

While trying to work with STOMP, websockets, facing issue for "packages get" after updating pubspec with required stomp/websocket details. I have tried for stomp, stompdart, websocket none of them worked. Error observed while running "packages get" is "The current Dart SDK version is 2.1.0-dev.4.0.flutter-4eb879133a.

Because project_name depends on stompdart >=0.0.2 which requires SDK version >=1.5.0 <2.0.0, version solving failed. pub upgrade failed (1)"

If I try to downgrade flutter version then it has thrown exception informing 'current project needs SDK version > 2.0.0

Please help to clear the issue or suggest some other way as I am using STOMP at server end.

Sfshaza commented 6 years ago

Hi, @srivanigorthi! Did you figure out how to resolve this?

srivanigorthi commented 6 years ago

@Sfshaza No. Do you have idea to resolve this ? Or do you have any idea how to connect to websockets from flutter(flutter acts as client, spring application acts as server) to get broadcasted messages from server

srivanigorthi commented 6 years ago

@Sfshaza .. No, My issue is not yet cleared.Do you have idea to clear the issue? Do you have any idea how to connect from flutter(acting as client) to spring websockets ( acting as server) to receive the messages broadcasted from server?

smm13344331 commented 5 years ago

@Sfshaza No. Do you have idea to resolve this ? Or do you have any idea how to connect to websockets from flutter(flutter acts as client, spring application acts as server) to get broadcasted messages from server

I have exactly the same issue, did you make this work?

sfshaza2 commented 5 years ago

@srivanigorthi, did you try this solution? https://stackoverflow.com/questions/52440301/usage-of-websocket-stomp-in-flutter-application

Also, I found this video, which might be helpful: https://www.youtube.com/watch?v=69Ul8bAahQY

atsansone commented 1 year ago

This is a support question. No doc request has been made. It references very old versions of Dart and Flutter. Closing this issue.