mclintprojects / actioncable-vue

A Vue plugin that makes integrating Rails Action Cable dead-easy.
MIT License
182 stars 37 forks source link

Access component's methods #38

Closed andresespinosapc closed 3 years ago

andresespinosapc commented 3 years ago

Is your feature request related to a problem? Please describe. I want to use methods from the component inside the channel events, such as the connected event, but it says that this is undefined.

Describe the solution you'd like Be able to access my component's methods.

Describe alternatives you've considered I haven't come up to anything yet.

andresespinosapc commented 3 years ago

Sorry, I was using the notation connected: async () => instead of async connected(), because it worked with official version of ActionCable, but it's all good ;)