You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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 adata.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
The text was updated successfully, but these errors were encountered: