hapijs / nes

WebSocket adapter plugin for hapi routes
Other
502 stars 87 forks source link

Does anyone know how to use Nes with Vue.js? #249

Closed SamuelEarl closed 6 years ago

SamuelEarl commented 6 years ago

The title pretty much describes my question. I might have to dig around in the Vue internals to see what I can find, but I was wondering if someone has already solved this problem?

Thank you!

wswoodruff commented 6 years ago

You can use nes with any front-end framework you'd like! This package only deals with the hapi back-end implementation of websockets.

devinivy commented 6 years ago

Nes does actually come with a client (require('nes/client')) as well, but it's not tied to any frontend frameworks.

wswoodruff commented 6 years ago

Oh cool! Thx for pointing that out @devinivy So @SamuelEarl you can require nes/client in your Vue.js app and implement nes on the back-end and you should be good to go

SamuelEarl commented 6 years ago

Hmm. I've tried configuring Nes with a hapi/Vue app, but could not get it to work. I'll post some code and see if anyone can spot where I'm going wrong.

Thank you for responding.

mtharrison commented 6 years ago

As this is a question of how to glue together unrelated pieces rather than an issue with Nes, please post your usage questions on the discuss repo: https://github.com/hapijs/discuss

As others said though there's nothing in Nes which would either help or hinder integration with any front end framework. Nes just delivers data and you can choose to present that data however you wish.

lock[bot] commented 4 years ago

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.