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
_http_outgoing.js:721 Uncaught TypeError: socket.cork is not a function
at ClientRequest._flushOutput (_http_outgoing.js:721)
at ClientRequest._flush (_http_outgoing.js:700)
at _http_client.js:249
at callSocketMethod (_http_client.js:656)
at ClientRequest.onSocket (_http_client.js:661)
at Object.onceWrapper (events.js:293)
at emitOne (events.js:96)
at ClientRequest.emit (events.js:191)
at tickOnSocket (_http_client.js:622)
at onSocketNT (_http_client.js:638)
Many design elements of node.js assume that it is a console application. Examples: REPL, standard streams, parent-child communication channels, and the Console object itself. I am not sure it can be embedded into an MFC application without making fair amount of refactoring.
I embed nodejs in my mfc application, but inspect by chrome or some other conditions, it will crash.
I modified many source code:
1、stream(stdio.js)
2、inspector
3、Console
4、Run a timeInterval to keep thread;
I suggest you embed V8, or reference nw.js. @kanbang
@823639792
I had embed v8 in a draw toolbox, since already using V8, why not embed node.js instead? This would allow developers to use any of the 100,000+ packages in npm without restriction.
could you help me to build a tiny mfc demo, just a helloworld, win32 non-console, without child process
Activity
823639792 commentedon Apr 17, 2017
in stdio.js I create dummy stream.
refack commentedon May 5, 2017
@823639792 Sorry thing dropped off my radar... Back in focus.
Did you make any progress?
kanbang commentedon Jun 27, 2017
how to embed nodejs in win32 non-console application (for example:mfc)?
could someone kind show me a tiny demo
gireeshpunathil commentedon Jun 27, 2017
Many design elements of node.js assume that it is a console application. Examples: REPL, standard streams, parent-child communication channels, and the
Consoleobject itself. I am not sure it can be embedded into an MFC application without making fair amount of refactoring.823639792 commentedon Jul 11, 2017
I embed nodejs in my mfc application, but inspect by chrome or some other conditions, it will crash.
I modified many source code:
1、stream(stdio.js)
2、inspector
3、Console
4、Run a timeInterval to keep thread;
I suggest you embed V8, or reference nw.js.
@kanbang
refack commentedon Jul 11, 2017
nodejs/node#14158 - to try to raise focus on the embedding story
kanbang commentedon Jul 23, 2017
@823639792

I had embed v8 in a draw toolbox, since already using V8, why not embed node.js instead? This would allow developers to use any of the 100,000+ packages in npm without restriction.
could you help me to build a tiny mfc demo, just a helloworld, win32 non-console, without child process
styfle commentedon Mar 19, 2018
@refack @Trott Should this ticket be closed in favor of nodejs/node#14158 ?
Trott commentedon Mar 19, 2018
Closing. If anyone thinks it should remain open, leave a comment (or re-open it if GitHub let's you). Thanks!