Skip to content

Commit 4c7b912

Browse files
committed
feat(client): add port option to client
1 parent e31fc8e commit 4c7b912

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/balatrobot/client.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,13 @@ class BalatroClient:
3131
timeout = 30.0
3232
buffer_size = 65536
3333

34-
def __init__(self):
35-
"""Initialize BalatroBot client"""
34+
def __init__(self, port: int = 12346):
35+
"""Initialize BalatroBot client
36+
37+
Args:
38+
port: Port number to connect to (default: 12346)
39+
"""
40+
self.port = port
3641
self._socket: socket.socket | None = None
3742
self._connected = False
3843

0 commit comments

Comments
 (0)