Skip to content

Commit 33b7d12

Browse files
authored
Fix subscriptions not being restored on reconnect (#446)
Starting from Socket IO 3.x connection state events are triggered only by socket manager Co-authored-by: electron93 <[email protected]>
1 parent c350847 commit 33b7d12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/laravel-echo/src/connector/socketio-connector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class SocketIoConnector extends Connector<
4646
this.options as Partial<ManagerOptions & SocketOptions>,
4747
);
4848

49-
this.socket.on("reconnect", () => {
49+
this.socket.io.on("reconnect", () => {
5050
Object.values(this.channels).forEach((channel) => {
5151
channel.subscribe();
5252
});

0 commit comments

Comments
 (0)