Superd22 / ngxs-socketio

socket io plugin for ngxs
GNU General Public License v3.0
0 stars 0 forks source link

Comparison with @ngxs/websocket-plugin #1

Open markwhitfeld opened 5 years ago

markwhitfeld commented 5 years ago

Hi David

I am the lead for the core NGXS team and I stumbled upon your repository this morning. I am interested that you made a plugin for NGXS for working with web-sockets. This was my only way to reach out to you...

There is a plugin called @ngxs/websocket-plugin that is published from the main repository. Can I ask why you went the route to create your own instead of using the existing plugin?

The reason for asking is that there is just a small subset of our users that are using the websocket plugin and I personally don't use it in any of my projects, so I am lacking insight into what it needs. Maybe you could provide some insight into areas of the plugin that could be improved or identify any issues that you had with it?

Thanks -Mark

Superd22 commented 5 years ago

Hey Mark,

Thanks for reaching out, Firstly, amazing job on NGXS, we've been using it at work as a replacement for NGRX and everyone's been thrilled with the reduce boilerplate and easier APIs.

The library you've found is just a personal project i've dabbed with. It stems from a desire to use NGXS with Socket.IO rather than plain websocket. There was an issue about that here : https://github.com/ngxs/store/issues/509

the guy threw together a POC of how it could work, inspired by the official ngxs/web-socket repo. mine is inspired by his and aims to port your easy to use interface (action dispatched by the back-end and read through websocket front-side) to Socket.IO. This meant having to deal with namespaces/rooms and such concepts introduced by socketio.

Hope this helps, David.