Skip to content

Commit bbfdadc

Browse files
authored
feat: cli compute server host var (#74)
1 parent d332e51 commit bbfdadc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

packages/blink/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "blink",
3-
"version": "1.1.30",
3+
"version": "1.1.31",
44
"description": "Blink is a tool for building and deploying AI agents.",
55
"type": "module",
66
"bin": {

packages/blink/src/cli/compute-server.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ export default async function serveCompute() {
3333
throw new Error("PORT environment variable is not a number");
3434
}
3535

36-
const wss = new WebSocketServer({ port });
36+
const host = process.env.HOST ?? "127.0.0.1";
3737

38-
console.log(`Compute server running on port ${port}`);
38+
const wss = new WebSocketServer({ port, host });
39+
40+
console.log(`Compute server running on ${host}:${port}`);
3941

4042
wss.on("connection", (ws) => {
4143
console.log("Client connected");

0 commit comments

Comments
 (0)