MetinSeylan / Vue-Socket.io

😻 Socket.io implementation for Vuejs and Vuex
https://metin.sh
MIT License
3.95k stars 496 forks source link

Defining non-method name frendy component level event handlers. eg "test-event" #276

Open krinistof opened 4 years ago

krinistof commented 4 years ago

Hey! Thanks for the project! Is there any way to define methods in the sockets block of component?

For example, in js, you cannot create a method with characters like space, comma, etc, that is otherwise allowed by socketio.

What is the recommended workaround?

Thanks for the answer in advice.

krinistof commented 4 years ago

After realising there have been other issues also related to that, (eg that one) I think in order for others to do not miss that, add it to the documentation.