Show HN: pocket-sockets is a small TCP/WebSockets lib written in TypeScript Posted by thomasbacklund on Tuesday September 28, 2021 @10:20AM from the show-hn dept. https://github.com/bashlund/pocket-sockets ( 1 comment | 3 points | on HN )
You all know that browsers require WebSockets but when doing server to server communication regular TCP sockets are leaner and faster.
With pocket-sockets you can switch the underlying sockets as you need but use the same interface for both TCP and WebSockets.
Small, neat and few dependencies. Written in TypeScript with a bunch of tests to it :)
It also supports SSL/TLS encryption.
Happy SYN/ACK day!