WebSocketListener receives RawMessage instead of Parsed Json Trade or quotes

Open
#185 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
kotlin
Domain
api

Research direction

Start in PolygonWebSocketClient.kt and trace the dispatch path from the parsed JSON array to the attached WebSocketListener. Compare the listener callback with the RawMessage shown in the report. Done means trade and quote subscriptions deliver parsed trade or quote data to the listener instead of a byteArray RawMessage, with relevant behavior covered by tests if they exist.

Written by the indexing model from the issue text.

Description

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

Dominant language
Kotlin
Stars
82
Forks
38
Avg merge
32m
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from massive-com/client-jvm

All issues in massive-com/client-jvm

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.