Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: this.pingIntervalTimer.refresh is not a function #324

Open
l5769389 opened this issue Nov 30, 2021 · 1 comment
Open

Comments

@l5769389
Copy link

我在electron上使用,想建立两个应用的sockio通讯。但是遇到了如下错误:
image
似乎每发一些消息就会报错,然后断线,重连之后重复如此。
我的node版本是:v16.13.0 ,
"vue-socket.io": "^3.0.10",
"socket.io": "4.4.0",
"socket.io-client": "4.4.0",
"electron": "^13.0.0",

@l5769389
Copy link
Author

对了,我是在electron的 preload.js中通过express新建了socketIO的服务端。现在我把建立服务器端的时机移到主进程中似乎就没有报错了。不知道是为什么

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant