F
F
freestm2016-08-03 21:33:56
JavaScript
freestm, 2016-08-03 21:33:56

What do you need to write a chat in php and js?

I am learning laravel. As a training, I decided to make a small social network. I want to implement messaging in the form of a chat (as in VK or fb). What do I need for this?

Answer the question

In order to leave comments, you need to log in

9 answer(s)
O
Oleg Gamega, 2016-08-03
@gadfi

chat in php is a pretty bad idea, really, of course, the simplest long polling will help you, but still it won’t withstand a serious load (no need for vk and fb, chat is not in php there)
it might be better to look at the same centrifugo for the implementation of the chat or something like that
PS with php is normally friendly
PS article about it

N
napa3um, 2016-08-03
@napa3um

> What do I need for this?
Time to train and implement the project on your own or money to hire competent performers.

D
Denis Bukreev, 2016-08-03
@denisbookreev

php, js and html markup
is a very strange question

E
entermix, 2016-08-03
@entermix

What is the best way to implement live chat?

P
Philipp, 2016-08-03
@zoonman

socketo.me is for you

R
Risent Veber, 2016-08-03
@risentveber

You guys are talking about an educational project: laravel with a regular relational database, as well as a little better js, with a framework like react or angular will be enough.

S
Stanislav Katkov, 2016-08-03
@lunaticman

you need redis, google pub/sub.

A
Anton, 2016-08-04
@SPAHI4

As already written, socketo.me
Run the daemon and connect on the client

V
Victor, 2016-08-05
@Levhav

https://habrahabr.ru/company/comet-server/blog/273573/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question