Skip to content

Commit

Permalink
update to api based usage
Browse files Browse the repository at this point in the history
  • Loading branch information
mertushka committed Aug 25, 2022
1 parent 45771b2 commit f5085cc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,14 @@ HaxballJS.then((HBInit) => {
```

#### 馃捇 (Optional) Proxy
Haxball has a limit of 2 rooms per IP. Therefore, you can use proxy with `PROXY=<YOUR_PROXY_IP>`.
Haxball has a limit of 2 rooms per IP. Therefore, you can use proxy with adding `proxy:"<YOUR_PROXY_IP>" in your RoomConfig`.

Example:
```bash
PROXY=http://127.0.0.1:9001 node room.js
```js
HBInit({
...
proxy: "http://1.1.1.1:80",
});
```

#### 馃捇 (Optional) TypeScript
Expand Down

0 comments on commit f5085cc

Please sign in to comment.