DEV Community

Discussion on: Nuxt Socket.IO: Connection Status and Error Handling Made Easy

Collapse
 
kimseangha profile image
KimSeangHa

Hello
I am a developer who is developing using nuxt.

I'm asking because something difficult came up.

  1. ConnectTimeout exists in statusProp, does this mean the time before reconnecting when socket connection fails?

  2. How do I use the nuxt socket timeout?
    I checked the data using statusProp, but I want to set the value of connectTimeout inside. I don't know how to set it up.

Please help me.

Collapse
 
richardeschloss profile image
Richard Schloss

Hi, this article was written a while ago. The newest version of socket.io doesn't emit the "connectTimeout" event. Please try upgrading.