mscdex / cap

A cross-platform binding for performing packet capturing with node.js
MIT License
360 stars 46 forks source link

Can I send a WebSocket package without worrying about ACK number or Seq number? #97

Closed wyxcoder closed 4 years ago

wyxcoder commented 4 years ago

It seems it is not practical to send out raw TCP packet .

mscdex commented 4 years ago

No, all packets have to at least be well-formed. Besides that, whether the packet will be accepted by the destination is another issue and depends on the various protocols.

IMO send() is for fairly niche use cases and isn't very useful for most users.