Skip to content

Commit 755602d

Browse files
committed
fix gateway path
1 parent 8655108 commit 755602d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

examples/simple_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ async def main():
130130
ws_url = os.getenv("STACKCOIN_WS_URL",
131131
base_url.replace("https://", "wss://")
132132
.replace("http://", "ws://")
133-
+ "/bot/websocket")
133+
+ "/ws")
134134

135135
async with stackcoin.Client(base_url=base_url, token=token) as client:
136136
me = await client.get_me()

stackcoin/stackcoin/gateway.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Gateway:
2525
Usage::
2626
2727
gateway = stackcoin.Gateway(
28-
ws_url="ws://localhost:4000/bot/websocket",
28+
ws_url="ws://localhost:4000/ws",
2929
token="...",
3030
)
3131
@@ -43,7 +43,7 @@ def __init__(
4343
last_event_id: int = 0,
4444
on_event_id: Callable[[int], None] | None = None,
4545
):
46-
# ws_url should be the full websocket URL like "ws://localhost:4000/bot/websocket"
46+
# ws_url should be the full websocket URL like "ws://localhost:4000/ws"
4747
self._ws_url = ws_url.rstrip("/")
4848
self._token = token
4949
self._handlers: dict[str, list[EventHandler]] = {}

0 commit comments

Comments
 (0)