Skip to content

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

Description

@Element16

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions