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

An error when using Socket.io-stream with Electron. #114

Open
Element16 opened this issue Jul 10, 2018 · 0 comments
Open

An error when using Socket.io-stream with Electron. #114

Element16 opened this issue Jul 10, 2018 · 0 comments

Comments

@Element16
Copy link

events.js:170 Uncaught TypeError: this.on is not a function at webpackJsonp../node_modules/events/events.js.EventEmitter.once(events.js:170) at CallbacksRegistry.apply (C:\123proje\123NG\123YA\YA-TEST\testangular\node_modules\electron\dist\resources\electron.asar\common\api\callbacks-registry.js:47) at EventEmitter.ipcRenderer.on (C:\123proje\123NG\123YA\YA-TEST\testangular\node_modules\electron\dist\resources\electron.asar\renderer\api\remote.js:261) at emitThree (events.js:136) at EventEmitter.emit (events.js:217) ....
I asked this on Stackoverflow. But I did not get any response. Here

I could not find the cause of the error. I'm getting this error when pipe the duplex to the socket. I created another node.js instance with child-process in electron. I solved the problem this way. But was very ugly.

"The best part of this problem was helping to understand the stream concept."
I hope there is a solution.

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