Open WerdoxDev opened 2 months ago
Bun 1.1.29 Crossws 0.3.1
peer.close(4001, "some reason");
using peer.close(4001, "some-reason") does not pass the code and reason to the close hook.
peer.close(4001, "some-reason")
code
reason
It seems that an empty {} object is being passed to it. https://github.com/unjs/crossws/blob/05ded7bd961d26d310786f529c0deb8cf9dcf02c/src/adapters/bun.ts#L62
{}
No response
Environment
Bun 1.1.29 Crossws 0.3.1
Reproduction
peer.close(4001, "some reason");
Describe the bug
using
peer.close(4001, "some-reason")
does not pass thecode
andreason
to the close hook.It seems that an empty
{}
object is being passed to it. https://github.com/unjs/crossws/blob/05ded7bd961d26d310786f529c0deb8cf9dcf02c/src/adapters/bun.ts#L62Additional context
No response
Logs
No response