Skip to content

Commit

Permalink
Merge pull request #959 from Howie-IO/fixISocketFactoryArguments
Browse files Browse the repository at this point in the history
fixed: ISocketFactory type's argument
  • Loading branch information
Nevon authored Nov 16, 2020
2 parents daeec89 + 0d9d9e1 commit 28e5be5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ export interface KafkaConfig {
logCreator?: logCreator
}

export type ISocketFactory = (
export interface ISocketFactoryArgs {
host: string,
port: number,
ssl: tls.ConnectionOptions,
onConnect: () => void
) => net.Socket
}

export type ISocketFactory = (args: ISocketFactoryArgs) => net.Socket

export type SASLMechanism = 'plain' | 'scram-sha-256' | 'scram-sha-512' | 'aws' | 'oauthbearer'

Expand Down

0 comments on commit 28e5be5

Please sign in to comment.