Skip to content

Commit

Permalink
Merge pull request #11 from 13lazegg/master
Browse files Browse the repository at this point in the history
fix issue Angular 6 - share function
  • Loading branch information
rodgc authored Jul 4, 2018
2 parents 10dd958 + 7e1198f commit 18a219a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/socket-io.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ export class WrappedSocket {
if (this.subscribersCounter === 1)
this.ioSocket.removeListener(eventName);
};
}).share();
}).pipe(
share()
);
}

fromOneTimeEvent<T>(eventName: string): Promise<T> {
Expand Down

0 comments on commit 18a219a

Please sign in to comment.