You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Come from nkkayman's github. I don't know whether you can help me about my question below.
=================Original Issue===========================
Socket.io is not working after packing by using "yarn electron: builld".
However, the function is normal in development mode "yarn electron: serve". And normal for yarn server or yarn build.
I found the reason is socket client cannot be connected to server since the Invaild namespace.
The invaild namespace is "//app://.". I found the value by adding console for socket instance.
The normal namespace is "/" as default main namespace based on socket.io online document.
My question is that why the socket.io default namespace is changed to "//app://."? Any configuration file should be modified?
The text was updated successfully, but these errors were encountered:
Come from nkkayman's github. I don't know whether you can help me about my question below.
=================Original Issue===========================
Socket.io is not working after packing by using "yarn electron: builld".
However, the function is normal in development mode "yarn electron: serve". And normal for yarn server or yarn build.
I found the reason is socket client cannot be connected to server since the Invaild namespace.
The invaild namespace is "//app://.". I found the value by adding console for socket instance.
The normal namespace is "/" as default main namespace based on socket.io online document.
My question is that why the socket.io default namespace is changed to "//app://."? Any configuration file should be modified?
The text was updated successfully, but these errors were encountered: