TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: pocket-sockets is a small TCP/WebSockets lib written in TypeScript

3 pointsby thomasbacklundover 3 years ago

1 comment

thomasbacklundover 3 years ago
I made this nice little client&#x2F;server socket lib which has the same interface both for TCP sockets and WebSockets. Free to use, MIT licensed.<p>You all know that browsers require WebSockets but when doing server to server communication regular TCP sockets are leaner and faster.<p>With pocket-sockets you can switch the underlying sockets as you need but use the same interface for both TCP and WebSockets.<p>Small, neat and few dependencies. Written in TypeScript with a bunch of tests to it :)<p>It also supports SSL&#x2F;TLS encryption.<p>Happy SYN&#x2F;ACK day!