2 ms·
> Note: We promisify our socket.send function for two reasons: Using await makes the flow of our code sequential. We want to call socket.close after al
by asciii 4y ago
> Note: We promisify our socket.send function for two reasons:
Using await makes the flow of our code sequential.
We want to call socket.close after all messages are sent
Hence the use of send2