Live chat using Ionic and laravel at the end of the API

I am working on some ionic application where larvel is used for api. There is some need for real-time chat functionality.

I am trying to use something like socket.io.

The SO question does not change the stacks, how can I achieve it. My current stacks are cordova, ionic, and then laravel mysql for the server side.

can this be achieved with the current stack?

Thanks for the help in advance.

Hooray!

+4
source share
1 answer

, - , , , Laravel . Ionic, .

:

  • REST API POST
  • , NewMessage
  • Redis ( Pusher, Redis Socket.io)
  • Node.js script NewMessage, , ( , )
  • socket.io-client , , DOM

, , - Node.js Redis. , , Nginx, , SSL.

, . , , .

+4

Source: https://habr.com/ru/post/1650298/


All Articles