Show HN: pocket-sockets is a small TCP/WebSockets lib written in TypeScript(github.com)
github.com
Show HN: pocket-sockets is a small TCP/WebSockets lib written in TypeScript
https://github.com/bashlund/pocket-sockets
https://github.com/bashlund/pocket-sockets
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!