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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: ScaleSocket – Turn any script into a multiplayer WebSocket server

3 点作者 skimdesk超过 1 年前

2 条评论

skimdesk超过 1 年前
Hi HN.<p>ScaleSocket is a command line tool that lets you to wrap any STDIO capable script or binary, and serve it over websockets. Clients then connect to rooms (channels) which have an unique URL (wss:&#x2F;&#x2F;example.com&#x2F;exampleroom). Connecting to a room spawns a new process of the wrapped script. Subsequent websocket connections to the same room share the process.<p>I built ScaleSocket in order to be able to build multiplayer back-ends quickly. In the past, I have been experimenting with websocketd [1] to stream a command line application to the browser. It seemed to me that using that approach, i.e. spawning a process and streaming it over websockets, would make a nifty back-end for browser based multiplayer games. ScaleSocket takes that one step further, by supporting shared backend processes.<p>It&#x27;s a pleasant approach to get started with, since no lobby server or netcode is required for making a multiplayer backend. ScaleSocket has been my prototyping tool for multiplayer games for some time now.<p>[1] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9050970">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9050970</a>
pipo234超过 1 年前
Isn&#x27;t this just like netcat?
评论 #37583186 未加载