titan-x / titan

Messaging server with mobile and browser support.
MIT License
2 stars 3 forks source link

Provide Client #71

Closed soygul closed 8 years ago

soygul commented 8 years ago

Rather than depending on generic jsonrpc.Conn, we can provide a Client type with all the built in routes denoted with separate functions and extensible with additional routes too (if possible with type embedding or similar?). This would remove the generic connection functions like ReadReq, WriteResp, etc.

Feasibility of this is debatable.

This also adds clarity (via removing generics) at the cost of verbosity.

soygul commented 8 years ago

If realized, this would also make test.ConnHelper a lot easier and may pave the way for the Java client.

soygul commented 8 years ago

Done.