signal-cli-rest-api icon indicating copy to clipboard operation
signal-cli-rest-api copied to clipboard

Move Implementation-Related details to implementation (api.go) from client.go in client.Receive()

Open dattito opened this issue 4 years ago • 1 comments

In the Receive() funtion from client.go, a JSON-string is returned. The conversion from a slice to JSON shouldn't be part of the app-layer but part from the implementation-layer.

I would do it myself and then open a pull-request, but then I would have to change something in the json-rpc part of the Receive() function in api.go. And because I am not that in json-rpc, I thought it would be at least good to note it here.

dattito avatar Oct 20 '21 20:10 dattito

Yeah, right, that's definitely something that should be cleaned up at some point. It's actually already on my TODO list, but I haven't found any time yet to fix that.

bbernhard avatar Oct 29 '21 15:10 bbernhard