Skip to content

Conversation

@jpcamara
Copy link
Contributor

@jpcamara jpcamara commented Nov 11, 2025

  • Otherwise when using compat, accessing whisper is very awkward. ie, if you have channel = this.consumer.subscriptions.create, you then need to call channel.channel.whisper

  • With this change, you can call channel.whisper instead

This was inspired by this addition to the yrb-actioncable package, which came across as odd and confusing: https://github.com/y-crdt/yrb-actioncable/pull/180/files

* Otherwise when using compat, accessing whipsper is very awkward. ie, if you have "channel = this.consumer.subscriptions.create", you need to call "channel.channel.whisper"

* With this change, you can call "channel.whisper" instead
@palkan
Copy link
Member

palkan commented Nov 11, 2025

Thanks!

@palkan palkan merged commit 117742d into anycable:master Nov 11, 2025
2 of 3 checks passed
@palkan
Copy link
Member

palkan commented Nov 11, 2025

Released in @anycable/core 1.1.4

@jpcamara
Copy link
Contributor Author

Sweet, thank you!

Any idea why I may have had trouble forcing it to install? It kept staying on anycable/core 1.1.2 until I forced it to 1.1.4 with a resolution

"@anycable/web": "^1.1.0",

"resolutions": {
  "@anycable/core": "1.1.4"
},

@palkan
Copy link
Member

palkan commented Nov 14, 2025

Any idea why I may have had trouble forcing it to install?

🤷‍♂️ tbh, the way npm (or whatever) resolves dependencies is a complete mystery to me; sometimes I give up and remove the corresponding parts from the lockfile and re-install; or "resolutions", yeah

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants