Skip to content

mqtt-worker crashes in Web Worker with window not defined  #1

@sandro-k

Description

@sandro-k

The Web Worker crashes at the following line:

module.exports = window.WebSocket || window.MozWebSocket

this is probably a bug at https://github.com/maxogden/websocket-stream, because a Web Worker has no global window object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions