Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 2592

ReScript RPC like?

$
0
0

Thanks a lot!
So, for my understanding, I stil need to wire this on the server side like this right:

let app = Fastify.make()

app->Fastify.route(Contract.getPosts, async ({input}) => {
  // Implementation where return type is promise<'response>
})

let _ = app->Fastify.listen({port: 3000})

Viewing all articles
Browse latest Browse all 2592

Trending Articles