DEV Community

Cover image for Real-Time Communication in ReasonML with bs-socket

Real-Time Communication in ReasonML with bs-socket

Ben Lovy on March 03, 2019

In this post I'll demonstrate some real-time communication in a simple application using ReasonML. If you're brand new to Reason, some assumed bas...
Collapse
 
qm3ster profile image
Mihail Malo

Loving this post. Setup, server, bs-socket, client, and ReasonReact all in a short post, but still possible to follow for a beginner.

Collapse
 
qm3ster profile image
Mihail Malo

You could just use [@bs.val] external portEnv: option(string) = "process.env.PORT"; right?
Because we aren't expecting null, only undefined?

Collapse
 
deciduously profile image
Ben Lovy • Edited

Hm I believe you're right - I'll double check and update if so!

EDIT: It's so - updated. Thanks!

Collapse
 
iwilsonq profile image
Ian Wilson

Great article, we need more ReasonML posts so keep them coming. :)