TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

3 点作者 thomasbacklund超过 3 年前

1 comment

thomasbacklund超过 3 年前
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!