Skip to content

How to use this web worker to receive websocket and send? #5

@Jamlearner

Description

@Jamlearner

I see that it returns a promise of the function,

        const promise = this._webWorkerService.run(this.someCPUHeavyFunction, input);
        promise.then(result => console.log(result));

How can I use a worker to receive a websocket and send the received information back?

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