-
Notifications
You must be signed in to change notification settings - Fork 32
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
Use postMessage instead of a comlink produced MessageChannel #148
Changes from 2 commits
9a9c722
19bd184
01aa1ee
a5090e3
b4739c2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -3061,7 +3061,7 @@ __metadata: | |||
"@jupyterlite/kernel": ^0.4.5 | ||||
"@types/jest": ^29.5.4 | ||||
coincident: ^1.2.3 | ||||
comlink: ^4.4.1 | ||||
comlink: ^4.4.2 | ||||
esbuild: ^0.19.2 | ||||
jest: ^29.7.0 | ||||
pyodide: 0.26.4 | ||||
|
@@ -5941,13 +5941,20 @@ __metadata: | |||
languageName: node | ||||
linkType: hard | ||||
|
||||
"comlink@npm:^4.3.1, comlink@npm:^4.4.1": | ||||
"comlink@npm:^4.3.1": | ||||
version: 4.4.1 | ||||
resolution: "comlink@npm:4.4.1" | ||||
checksum: 16d58a8f590087fc45432e31d6c138308dfd4b75b89aec0b7f7bb97ad33d810381bd2b1e608a1fb2cf05979af9cbfcdcaf1715996d5fcf77aeb013b6da3260af | ||||
languageName: node | ||||
linkType: hard | ||||
|
||||
"comlink@npm:^4.4.2": | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like the two versions of Line 20 in fb9c10d
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, I will try this. I am not so fluent with yarn, I normally use npm. I'll be back in the evening at my dev computer. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Running |
||||
version: 4.4.2 | ||||
resolution: "comlink@npm:4.4.2" | ||||
checksum: 35313f26fdd78c202be21be49a7607f57e9e91963399b524676742ee0cf7db589be500d923ed0809b53f37996461186fb345bf867d93236be22bfae3cb7bd07e | ||||
languageName: node | ||||
linkType: hard | ||||
|
||||
"commander@npm:^10.0.1": | ||||
version: 10.0.1 | ||||
resolution: "commander@npm:10.0.1" | ||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering if something a bit more explicit like
_kernelMessage
could also work? With or without the leading_
, but having it could help communicate it's used for "internal" message handling?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, but then also the coincident worker needs to rename the change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant for the
jMsg
key, we could still keep_sendWorkerMessage
as the method name:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, got it. and it is also unique enough that comlink ignores it. (comlink ignores it if no id field is set...)