coapjs / coapjs/node-coap

client reset observe failed

Open
#154 9 comments 1 reaction 1 assignee View on GitHub

@GiedriusM is already working on this.

Since Nov 8, 2017.

bug question RFC 7641
Dominant language
TypeScript
Stars
552
Forks
154
PR merge metrics
No merged PRs in 30d

Description

in client side, i want to send RST packet to server.

req.on('response', function(res) {
  console.log("---------------------response---------------------");
  console.log(res.headers);

  var rcvCount = 5;
  res.on('data', function(data) {
    console.log(data);
    rcvCount--
    if(rcvCount == 0){
      //it will throw new Error: Empty messages must be empty
      req.reset();
    }
  });
})
req.end()

when i call req.reset(), it will throw Empty messages must be empty error

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.