Hey 👋🏿
I am trying to stream data from the twitter api https://api.twitter.com/2/tweets/sample/stream
Ref - https://developer.twitter.com/en/docs/twitter-api/tweets/sampled-stream/api-reference/get-tweets-sample-stream
For the client I have this

with sample tweet being
final case class Id(id: Int) extends AnyVal
final case class Text(text: String) extends AnyVal
final case class Data(id: Id, text: Text)
final case class SampleTweet(data: Data) extends Tweet
but when I make a request, I get this error expected eof got '{"data...' (line 2, column 1)
There isn't a comma , after each data. (I think that is the reason for the error)

This makes me think that I am probably not handling the stream well. Please is there a better way to handle streams in fs2?
Hey 👋🏿
I am trying to stream data from the twitter api
https://api.twitter.com/2/tweets/sample/streamRef -
https://developer.twitter.com/en/docs/twitter-api/tweets/sampled-stream/api-reference/get-tweets-sample-streamFor the client I have this
with sample tweet being
but when I make a request, I get this error
expected eof got '{"data...' (line 2, column 1)There isn't a comma
,after eachdata. (I think that is the reason for the error)This makes me think that I am probably not handling the stream well. Please is there a better way to handle streams in
fs2?