Skip to content

Commit f9e3dda

Browse files
author
Will Nelson
committed
fix: use new connection options in node options
1 parent 8399cb7 commit f9e3dda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/base/Node.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import WebSocket = require('ws');
22
import { EventEmitter } from 'events';
3-
import Connection from '../core/Connection';
3+
import Connection, { Options as ConnectionOptions } from '../core/Connection';
44
import Http, { Track, TrackResponse } from '../core/Http';
55
import PlayerStore from '../core/PlayerStore';
66

@@ -28,7 +28,7 @@ export interface BaseNodeOptions {
2828
shardCount?: number;
2929
hosts?: {
3030
rest?: string;
31-
ws?: string | { url: string, options: WebSocket.ClientOptions };
31+
ws?: string | { url: string, options: ConnectionOptions };
3232
};
3333
host?: string;
3434
}

0 commit comments

Comments
 (0)