Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Message" lacks all methods except "text" #97

Closed
sholohov opened this issue Dec 16, 2024 · 1 comment
Closed

"Message" lacks all methods except "text" #97

sholohov opened this issue Dec 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@sholohov
Copy link

sholohov commented Dec 16, 2024

Environment

node versions - stackblitz.com
"crossws": "^0.2.0",
"h3": "latest",

Reproduction

  1. launch stackblitz.com
  2. add logs to the "message" method to check for methods in the "message argument"

https://stackblitz.com/edit/github-es5emgzc?file=index.ts

Describe the bug

"Message" from

message: (peer: Peer, message: Message) => MaybePromise<void>

has no more methods except "text()"

image

Additional context

No response

Logs

No response

@sholohov sholohov added the bug Something isn't working label Dec 16, 2024
@pi0
Copy link
Member

pi0 commented Dec 16, 2024

Latest version of crossws is 0.3.1 (which has all new methods) and listhen is 1.9.0. You reproduction is using crossws 0.2.x which does not have them.

Here is updated version: https://stackblitz.com/edit/github-es5emgzc-ypk3boue?file=index.ts,package.json

@pi0 pi0 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants