hi, is there any resource to see websocket usage within duct?
Is there documentation anywhere about writing unit tests for duct applications. I'm especially looking for information relating to unit tests for routes and databases. I'm using ataraxy
and duct/database.sql.hikaricp
.
Typically you'll write a boundary protocol for databases, and test handlers individually using init-key.
Routes can be tested individually by seeing what handler Ataraxy resolves to.
There are adapters for http-kit and aleph, which support websockets. Once you have a server that supports websockets, follow the server's tutorials to use them.