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
As a effort into implementing spec'ed web worker (#43583) (which is highly desirable and upvoted) then the worker.onerror would have to emit a ErrorEvent.
I notice this when i tried to build a more spec comp. web worker.
There has been no activity on this feature request for 5 months and it is unlikely to be implemented. It will be closed 6 months after the last non-automated comment.
There has been no activity on this feature request for 5 months. To help maintain relevant open issues, please add the
never-staleIssues and PRs exempt from automated stale handling.
label or close this issue if it should be closed. If not, the issue will be automatically closed 6 months after the last non-automated comment.
For more information on how the project manages feature requests, please consult the feature request management document.
The WebSocket specification doesn't mention ErrorEvent. For events, it doesn't specify the type of error events, whereas for the close event, it's a CloseEvent:
fire an event named error at the WebSocket object.
Fire an event named close at the WebSocket object, using CloseEvent,
There has been no activity on this feature request for 5 months. To help maintain relevant open issues, please add the
never-staleIssues and PRs exempt from automated stale handling.
label or close this issue if it should be closed. If not, the issue will be automatically closed 6 months after the last non-automated comment.
For more information on how the project manages feature requests, please consult the feature request management document.
There has been no activity on this feature request and it is being closed. If you feel closing this issue is not the right thing to do, please leave a comment.
Activity
bnoordhuis commentedon Apr 18, 2023
Node doesn't emit ErrorEvents itself so it's questionable if it makes sense to add it.
But... without working code it won't happen in the first place. Go ahead and open a pull request and see how it's received.
jimmywarting commentedon Apr 18, 2023
As a effort into implementing spec'ed web worker (#43583) (which is highly desirable and upvoted) then the
worker.onerrorwould have to emit aErrorEvent.I notice this when i tried to build a more spec comp. web worker.
jimmywarting commentedon Apr 18, 2023
I have notice other events that Deno also has... here is a list of them: https://github.com/jimmywarting/missing-dom-events#compatibility-table
CloseEvent: For when a WebbSocket closes.ErrorEvent: For when WebSocket fails and you also get this onglobalThis.onerroranyway undici have both of this event builtin, maybe it could just be a mater of just exposing those on the global scope?
There is also a desire to make
globalThisinheritEventTargetin some open issue here too. so it can dispatch/emit postMessages, ErrorEventsgithub-actions commentedon Oct 16, 2023
There has been no activity on this feature request for 5 months and it is unlikely to be implemented. It will be closed 6 months after the last non-automated comment.
For more information on how the project manages feature requests, please consult the feature request management document.
regseb commentedon Oct 19, 2023
ErrorEventisn't used byWebSocket. Theerrorevent ofWebSocketreturns a genericEvent. Maybe only web workers useErrorEvent.Now that
WebSocketis in Node.js v21 (behind the--experimental-websocketflag), I've opened an issue #50275 to addCloseEventin Node.js.github-actions commentedon Apr 17, 2024
There has been no activity on this feature request for 5 months. To help maintain relevant open issues, please add the never-staleIssues and PRs exempt from automated stale handling.
label or close this issue if it should be closed. If not, the issue will be automatically closed 6 months after the last non-automated comment.
For more information on how the project manages feature requests, please consult the feature request management document.
KhafraDev commentedon Apr 26, 2024
WebSocket may use ErrorEvents, see the spec: https://html.spec.whatwg.org/multipage/indices.html#event-error
regseb commentedon Apr 26, 2024
@KhafraDev The https://html.spec.whatwg.org/multipage/indices.html#event-error page describes the general HTML specification. The word
WebSocketdoesn't appear. For theerrorevent, it indicates that the type may beEventorErrorEvent.The MDN page WebSocket: error event indicates only A generic
Event.The WebSocket specification doesn't mention
ErrorEvent. For events, it doesn't specify the type oferrorevents, whereas for thecloseevent, it's aCloseEvent:errorat theWebSocketobject.closeat theWebSocketobject, usingCloseEvent,web-platform-tests only tests
Eventforerror:assert_true(e instanceof Event)assert_equals(e.toString(), '[object Event]', "error e.toString()")assert_true(e instanceof Event).If I run the following code in Firefox or Chromium,
eis anEventvariable.github-actions commentedon Oct 24, 2024
There has been no activity on this feature request for 5 months. To help maintain relevant open issues, please add the never-staleIssues and PRs exempt from automated stale handling.
label or close this issue if it should be closed. If not, the issue will be automatically closed 6 months after the last non-automated comment.
For more information on how the project manages feature requests, please consult the feature request management document.
github-actions commentedon Nov 23, 2024
There has been no activity on this feature request and it is being closed. If you feel closing this issue is not the right thing to do, please leave a comment.
For more information on how the project manages feature requests, please consult the feature request management document.