Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Fix ConnectionInfo type (origin -> headers), added typings #4

Merged
merged 3 commits into from
Sep 17, 2018
Merged

Fix ConnectionInfo type (origin -> headers), added typings #4

merged 3 commits into from
Sep 17, 2018

Conversation

tmcgannon
Copy link
Contributor

Fix ConnectionInfo type (in types.ts, 'origin' property was not updated to 'headers'). Added typings.

@goriunov
Copy link
Member

goriunov commented Sep 15, 2018

Thanks for pull req, can you also add HTTPS typings (HTTP | HTTPS). So that we can proved http or https server.

@goriunov goriunov self-assigned this Sep 15, 2018
@tmcgannon
Copy link
Contributor Author

Added HTTP | HTTPS. Also, added types to handleUpgrade() - kind of a hack since you are accessing private net.Socket properties.

lib/types.ts Outdated
@@ -20,7 +22,7 @@ export type ServerConfigs = {
path?: string,
port?: number,
host?: string,
server?: any,
server?: HTTP.Server,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to add https here too

@tmcgannon
Copy link
Contributor Author

Sorry for that miss. HTTPS typing has been added to types.ts.

@goriunov
Copy link
Member

Looks good to me :) Thank you.

@goriunov goriunov merged commit 0bd8e26 into ClusterWS:master Sep 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants