Skip to content

Commit 50cd489

Browse files
authored
Mark listen and close as async (#440)
1 parent 1414420 commit 50cd489

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ declare module 'bedrock-protocol' {
162162

163163
constructor(options: Options)
164164

165-
listen(host?: string, port?: number): void
166-
close(disconnectReason?: string): void
165+
listen(host?: string, port?: number): Promise<void>
166+
close(disconnectReason?: string): Promise<void>
167167

168168
on(event: 'connect', cb: (client: Player) => void): any
169169
}

0 commit comments

Comments
 (0)