Skip to content

Workerd specification inquiry #1324

Answered by jasnell
NoahHahm asked this question in Q&A
Discussion options

You must be logged in to vote

Is there a protocol that can run scripts like nodejs' worker_thread function and send/receive them like IPC messages?

The quick answer is no, there is no support for anything like Node.js' worker_threads and IPC. The longer answer is that you could use connect() to establish a TCP connection with a Node.js process and handle much of the communication yourself but that's about the extent. The options immediately available built-in to workerd are http(s) and websockets.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by NoahHahm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1323 on October 20, 2023 14:30.