Skip to content

Commit 388ca30

Browse files
authored
Merge pull request #1094 from ably/fix-sync-emit-signature
fix: use correct sync event signature in base Transport class
2 parents b4d252f + 0ebc98b commit 388ca30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/lib/transport/transport.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ abstract class Transport extends EventEmitter {
156156
case actions.SYNC:
157157
if (message.connectionId !== undefined) {
158158
/* a transport SYNC */
159-
this.emit('sync', message.connectionId, message);
159+
this.emit('sync', message.connectionId, message.connectionId);
160160
break;
161161
}
162162
/* otherwise it's a channel SYNC, so handle it in the channel */

0 commit comments

Comments
 (0)