Skip to content

Commit

Permalink
fixed: ISocketFactory type's argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Howie-IO committed Nov 15, 2020
1 parent daeec89 commit 0d9d9e1
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 0d9d9e1

Please sign in to comment.