Is there any effect on server?

|
hypernxf 2021-01-20 20:48:25
easy to implement. just need to control the interval
natghi2010 2021-01-20 20:48:25
Yogesh 2021-01-20 20:46:23
Any laravel package??

you dont need one

natghi2010 2021-01-20 20:48:35
just spam ajax
Yogesh 2021-01-20 20:50:19
hypernxf 2021-01-20 20:47:59
Polling is actually still an acceptable concept when dealing with small packet

Is there any effect on server??

hypernxf 2021-01-20 20:50:42
of course
hypernxf 2021-01-20 20:50:58
it’s a matter of your scale
Yogesh 2021-01-20 20:52:37
Any tutorial link for this
Yogesh 2021-01-20 20:53:37
Or using pusher is best
Yogesh 2021-01-20 20:54:55
Can I use socket.io
natghi2010 2021-01-20 20:56:06
Yogesh 2021-01-20 20:54:55
Can I use socket.io

yes

natghi2010 2021-01-20 20:56:17
but it needs a work around
natghi2010 2021-01-20 20:57:08
what is it that you need websockets for?
Yogesh 2021-01-20 20:58:19
I try but again i
Stuck on nodejs and redis
natghi2010 2021-01-20 21:00:15
Its a big shame, that laravel doesnt have websocket support
natghi2010 2021-01-20 21:00:25
free websocket support
hypernxf 2021-01-20 21:01:01
There is
hypernxf 2021-01-20 21:01:13
it’s called Laravel-websocket
natghi2010 2021-01-20 21:01:37
whats the catch?
hypernxf 2021-01-20 21:01:46
I’m pretty sure behind Pusher engine are lots of Socket.IO lol
natghi2010 2021-01-20 21:01:48
hypernxf 2021-01-20 21:01:13
it’s called Laravel-websocket

do i have to sell my soul

hypernxf 2021-01-20 21:02:06
basically socket.io is just an instance/daemon tht listens and responds to messages
hypernxf 2021-01-20 21:02:21
laravel-websocket does basically the same thing. The catch is you need to host it yourself and manage all the server stuff
hypernxf 2021-01-20 21:02:33
easiest way to get off is just to install a $5 droplet. and riun supervisord
hypernxf 2021-01-20 21:02:43
that’s it
hypernxf 2021-01-20 21:04:24
Easy Peasy 🙂
Yogesh 2021-01-20 21:04:55
How to use socket in laravel
hypernxf 2021-01-20 21:05:19
https://beyondco.de/docs/laravel-websockets/getting-started/introduction

Laravel Websockets – IntroductionBeyond Code
We focus on building tools that make your life as developer more enjoyable and love sharing our broad knowledge that we gain during this process.
hypernxf 2021-01-20 21:05:32
just read through everything. It’s quite clear.
mahdyfo 2021-01-20 21:05:42
Yogesh 2021-01-20 20:58:19
I try but again i
Stuck on nodejs and redis

Try hard and use Echo and laravel-echo-server. You will succeed

hypernxf 2021-01-20 21:06:09
Laravel Echo is the frontend LoL
Yogesh 2021-01-20 21:06:39
Most cases I read on Google stuck on live server
mahdyfo 2021-01-20 21:06:41
hypernxf 2021-01-20 21:06:09
Laravel Echo is the frontend LoL

Search about laravel-echo-server
It is a package for the backend part which uses js to run.

Yogesh 2021-01-20 21:06:52
Implement
Yogesh 2021-01-20 21:07:08
On live server
mahdyfo 2021-01-20 21:07:09
Yogesh 2021-01-20 21:06:39
Most cases I read on Google stuck on live server

It is difficult tbh but just the first time.

|