Skip to content

Does not send messages from host to browser equal or to 65536 length #10

@guest271314

Description

@guest271314

Modify the following:

example.js

function handleMessage (req) {
  // if (req.message === 'ping') {
    sendMessage(req)
    // {message: 'pong', body: 'hello from nodejs app'}
  // }
}

background.js

port.postMessage(new Array(13107))

function handleMessage (req) {
  // if (req.message === 'pong') {
  //  console.log(req)
  // }
  console.log(req);
}

Notice the message is not sent to the browser.

See

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions