Author: pawan
-
adding node server.js to systemd service
how to add a service using ubuntu server built in systemd service
-
using laravel queue
Laravel queue can be used for queuing for example sending push notifications to all users, which otherwise using foreach can put strain on server when it needs to iterate over large number of reciepients. the above command creates a new file in apps/jobs directory as SendPushNotification, the contents of which can be like then in…
-
adding new livewire component from laravel shell
for creating a livewire component including related view you typically run the above command will create a livewire component StaffLogin and a related staff-login.blade.php
-
Integrating web socket in flutter
Then you typically create a service folder and create a dart file like chat_screen.dart with below code and include this class in main.dart
-
Live chat in Laravel using Ratchet
Install ratchet library using composer. Then create a websocket server file example websocker-server.php in project root. example code Then you need to create the chat class which will have methods for socket evens like onOpen, onMessage and onClose etc. like example below. This file Chat.php is typically placed in App/Websockets folder. and finally the chat…