laravel-echo-module icon indicating copy to clipboard operation
laravel-echo-module copied to clipboard

Request Delay before echo.connect()

Open mean-cj opened this issue 3 years ago • 3 comments

Hello

Thank you for your project.

Please add the delay time option before echo.connect() because when i need start socket.io after page load completed

Thank.

mean-cj avatar Jul 07 '20 19:07 mean-cj

i see your option connectOnLogin is not working because laravel-echo have been auto connect() on constructor

   constructor(options: any) {
        this.setOptions(options);
        this.connect();
    }

what do you think?

mean-cj avatar Jul 07 '20 20:07 mean-cj

Hi @mean-cj Fixed on version: 2.0.0-alpha.1 https://github.com/nuxt-community/laravel-echo-module/blob/main/src/runtime/echo.ts#L10 https://github.com/nuxt-community/laravel-echo-module/blob/main/src/runtime/echo.ts#L60 PS: I need to update docs

#47

ricardogobbosouza avatar Mar 31 '21 16:03 ricardogobbosouza

I will add hooks between the connections of the laravel-echo #44

ricardogobbosouza avatar Mar 31 '21 16:03 ricardogobbosouza