polygon-io / client-jvm

The official JVM client library SDK, written in Kotlin, for accessing the Polygon REST and WebSocket API.
49 stars 33 forks source link

WebSocketListener receives RawMessage instead of Parsed Json Trade or quotes #185

Open krebznet opened 5 months ago

krebznet commented 5 months ago

I am subscribing to all trades and quotes using PolygonWebSocketClient.kt in my attached listener I am receiving Raw Messages with byteArray despite looking at the stack trace seeing the SDK parsing an array of JSON elements that represent a trade or a quote subscribed to, why is my listener getting the raw data message? Do I have to do my own parsing of raw data to get quote and trade message data, I would think that would be done for me. Please advise This shows the Raw Message my listener is getting Screenshot 2024-04-08 at 1 00 43 PM This shows the JSON being parsed in the stack frame below my listener being called. Screenshot 2024-04-08 at 1 01 09 PM