Julian design for API library with Websocket client

Spirarel
Fri, 30 Apr 2021 00:48:58 +0000
Web Stack

I’m writing a Julia library to interact with an API that communicates via HTTP.Websockets. I’m struggling to find good, non-toy-repl, examples that illustrate the kind of contract a Julia dev would expect. In OO land it’s not uncommon to create an object that manages the stream with overwritten methods, but this doesn’t strike me as terribly Julian.

If you were using an library to access streaming data via websocket (Reddit, Coinbase, Slack, etc.) what kind of contract would you expect?

I realize this question is a little more art than science. If anyone has ideas or can point me to good examples in Julia I’d be very appreciative!

3 posts - 2 participants