icebob / vue-express-mongo-boilerplate

:star: MEVN Full stack JS web app boilerplate with NodeJS, Express, Mongo and VueJS
http://vemapp.moleculer.services/
2.85k stars 756 forks source link

listen one more socket prefix in the vue component #119

Open phamtuanchip opened 6 years ago

phamtuanchip commented 6 years ago

Hi ICEBOB, I am using your example but I have question in the vue ui component I would like to listen more than one socket prefix, how doses it come ? as I tryied

socket: { prefix: "/contacts/", events: { } }, socket: { prefix: "/messages/", events: { } } but it seems they are overrided

icebob commented 6 years ago

Hi,

it doesn't work. You can use only one prefix.