DEV Community

Discussion on: Real-Time Communication in ReasonML with bs-socket

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!