is it possible to build a typesafe kotlin web api that works on client using kotlinjs & server with jvm? something kinda like servant in haskell where you only have to write one api for the client & server
r
rnett
08/28/2021, 2:13 AM
If you mean what I think you do (not familiar with Haskell), Locations is as close as you can get with pure Kotlin, and my krosstalk library gets you most of the rest of the way: https://github.com/rnett/krosstalk. Kvision has something similar, too
c
crummy
08/28/2021, 2:19 AM
wow this is cool
a
andylamax
08/28/2021, 4:11 AM
@rnett can krosstalk be used with JSON as well? or only CBor for now?