Skip to content

Commit

Permalink
Added secure server option
Browse files Browse the repository at this point in the history
  • Loading branch information
MKHenson committed Mar 13, 2017
1 parent 99ab2c5 commit b8c811e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/definitions/required/ws.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
declare module "ws" {
import * as events from 'events';
import * as http from 'http';
import * as https from 'https';
import * as net from 'net';

class WebSocket extends events.EventEmitter {
Expand Down Expand Up @@ -90,7 +91,7 @@ declare module "ws" {
export interface IServerOptions {
host?: string;
port?: number;
server?: http.Server;
server?: http.Server | https.Server;
verifyClient?: {
(info: {origin: string; secure: boolean; req: http.ServerRequest}): boolean;
(info: {origin: string; secure: boolean; req: http.ServerRequest},
Expand Down

0 comments on commit b8c811e

Please sign in to comment.