Skip to content
This repository was archived by the owner on Oct 12, 2024. It is now read-only.

Commit 57f8cb8

Browse files
committed
fix(service): fix bug
1 parent 20419c8 commit 57f8cb8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

projects/ngx-socketio2/src/lib/socketio.service.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ export class Socketio implements OnDestroy {
9595

9696
if (!eventName) {
9797
return observable.pipe(
98-
map(({ args }) => (args.length === 1 ? args[0] : args) as T)
98+
map(({ eventName, args }) => ({
99+
eventName,
100+
args: (args.length === 1 ? args[0] : args) as T
101+
}))
99102
);
100103
}
101104

0 commit comments

Comments
 (0)