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

GetSocket message type parsing issue in web for get version 5.0.0-RC-9.2.1. #3275

Open
ebala96 opened this issue Dec 20, 2024 · 0 comments
Open
Assignees

Comments

@ebala96
Copy link

ebala96 commented Dec 20, 2024

I have updated getx version to RC-9.2.1 in my pubspec.
I am facing issue in parsing websocket messages sent using GetSocket in web.
In web implementation, emit(String event, dynamic data) does a data.toJSBox to the message data which makes a raw JS object.

Until now I was doing a json.decode(webSocketMessage) in my server side for messages on web socket listener.
Performing a json.decode on [object Object] throws exception since it can only handle JSON string and not raw JS objects.
It was working for the getx version I previously used.

How can this be parsed?

Flutter Version:
Flutter Channel stable - 3.24.4

Getx Version:
5.0.0-release-candidate-9.2.1

Describe on which device you found the bug:
Web

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

2 participants