S
S
sawa42016-11-24 15:26:25
Laravel
sawa4, 2016-11-24 15:26:25

Chat Laravel 5.2?

Hello!
I don't know the socet.io library, node.js and redis technology, but I need to write a chat in my application on laravel 5.2,
for about 50 people at the same time.
What is the best chat to use in Laravel 5.2? What is the most convenient and understandable.
Who uses what in their applications on Laravel?
Skinte please links to the documentation with the demo preferably.
Who will advise what?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
A
Andrzej Wielski, 2016-11-24
@wielski

Laravel is a server-side framework.
Judging by this fact, your requirements for "convenience" and "understandability" are immediately swept aside, because you must write the interface yourself.
Further, PHP cannot work with sockets out of the box, and all implementations of this are too crutch.
You will have to use Node anyway. If you don't want to bother, read this manual:
itsolutionstuff.com/post/laravel-52-chat-message-m...
There is a ready-made code, just follow the steps.

D
Dmitry Evgrafovich, 2016-11-24
@Tantacula

Last used a centrifuge for this. The user sends a message to the Laravel application, and the application broadcasts to everyone who needs it using event broadcasting (Laravel version was 5.1). If you need a chat and only a chat, then it seems to me that it would be better to use javascript or go on the server, php has trouble with websockets.

M
Maxim, 2016-11-24
@Qumbeez

Start at socketo.me/. Google YouTube videos and you will find good tutorials.

U
UksusoFF, 2016-11-24
@UksusoFF

So in 5.3, there seems to be Echo . Look in his direction.

V
Victor, 2016-11-26
@Levhav

The simplest option is to use one of the SaaS comet servers https://habrahabr.ru/company/comet-server/blog/273573/ then the Ajax server will not have to be loaded with requests and will work quickly.
From the developments, I can share the sources of my chat city-chat.comet-server.ru or comet-server.com/wiki/doku.php/comet:star-comet-chat or comet-server.ru/wiki/doku.php/comet :chat-with-auth... could also answer questions on Skype if there are questions about reusing the code of these examples.

S
sawa4, 2016-12-06
@sawa4

Guys on which port to install socket io in ubuntu
, I just have 80, 3000 and 6001 on 8080 gives the following error
GET test:6001/socket.io/?EIO=3&transport=polling&t=LZIMujU net::ERR_CONNECTION_REFUSED

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question