diff options
Diffstat (limited to 'bilibili/connect.go')
-rw-r--r-- | bilibili/connect.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bilibili/connect.go b/bilibili/connect.go index 472c979..de608d0 100644 --- a/bilibili/connect.go +++ b/bilibili/connect.go @@ -5,7 +5,7 @@ import ( "nhooyr.io/websocket" ) -func (b Bilibili) DialWebSocket(ctx context.Context, url string) (*websocket.Conn, error) { +func (b *Bilibili) DialWebSocket(ctx context.Context, url string) (*websocket.Conn, error) { ws, _, err := websocket.Dial(ctx, url, &websocket.DialOptions{ HTTPClient: b.http, }) |