Skip to content

Commit

Permalink
feat(mock-server): Add close function
Browse files Browse the repository at this point in the history
  • Loading branch information
fussel178 authored and Ludwig Richter committed Mar 30, 2021
1 parent 4422865 commit 3e0b5a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/vertx-mock-server/src/vertx-mock-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ export class VertxMockServer {
this.httpServer.listen(port, hostname);
}

close(cb?: (err?: Error | undefined) => void): void {
this.httpServer.close(cb);
}

private setupEventBus(prefix: string): void {
// define handlers
this.eventBus.on('connection', conn => {
Expand Down

0 comments on commit 3e0b5a8

Please sign in to comment.