https://kotlinlang.org logo
#ktor
Title
# ktor
d

Dazai

08/28/2021, 1:16 AM
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?
r

Robert Jaros

08/28/2021, 7:29 AM
a

andylamax

08/28/2021, 9:24 AM
So, does
@KService
use krosstalk under the hood?
r

Robert Jaros

08/28/2021, 10:19 AM
No