B
B
bernex2015-12-25 19:43:38
Node.js
bernex, 2015-12-25 19:43:38

How to properly organize the WebSocket exchange for the admin panel?

I want to use a WebSocket bundle for a one-page admin panel.
I have always used CRUD+laravel as a standard.
Now I want to make node.js + WebSocket.
Is it worth it or use a familiar bunch?
I want the necessary links to be loaded with multiple requests, i.e. received the book, then uploaded the authors, then sales to it.
In a standard crud, you either have to return everything at once or make a lot of requests, and then the load is felt.
Which libraries are better to use: Socket.io?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Litvinenko, 2015-12-25
@edli007

You do everything exactly the same as for regular CRUD, only the protocol is different. You don't even have to share them with http routes.
But in general they are not for this, but for
1. the first one received the book
2. someone else changed the data in the book
3. the first one had the book updated at the same moment, without additional requests

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question