mirror of
https://github.com/fosrl/newt.git
synced 2025-05-13 05:30:39 +01:00
Move websocket
This commit is contained in:
parent
31692c03e8
commit
082ebae0bb
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ func (c *Client) Connect() error {
|
|||
}
|
||||
|
||||
// Create WebSocket URL using the hostname without path
|
||||
wsURL := fmt.Sprintf("%s://%s/ws", wsProtocol, baseURL.Host)
|
||||
wsURL := fmt.Sprintf("%s://%s/api/v1/ws", wsProtocol, baseURL.Host)
|
||||
u, err := url.Parse(wsURL)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to parse WebSocket URL: %w", err)
|
||||
|
|
Loading…
Reference in a new issue