Skip to content

Commit 72f052b

Browse files
committed
misc: add wss to type definitions
1 parent c080ca7 commit 72f052b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.travis/build-types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ declare module 'obs-websocket-js' {
204204
}
205205
206206
class ObsWebSocket extends EventEmitter {
207-
connect(options?: {address?: string; password?: string}, callback?: (error?: Error) => void): Promise<void>;
207+
connect(options?: {address?: string; password?: string; secure?: boolean}, callback?: (error?: Error) => void): Promise<void>;
208208
disconnect(): void;
209209
210210
send<K extends keyof RequestMethodsArgsMap>(

lib/Socket.js

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class Socket extends EventEmitter {
5454
* Opens a WebSocket connection to an obs-websocket server, but does not attempt any authentication.
5555
*
5656
* @param {String} address url without ws:// or wss:// prefix.
57+
* @param {Boolean} secure whether to us ws:// or wss://
5758
* @returns {Promise}
5859
* @private
5960
* @return {Promise} on attempted creation of WebSocket connection.

0 commit comments

Comments
 (0)