Skip to content

ricdizio/Node-Socket-Laravel-PHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node JS Socket IO implementation using Laravel (PHP)

This project is a example of how to implement a broadcast messege from laravel or PHP using Node JS with Socket IO library

##Steps:

1- Create a Server in Node JS with Socket IO

2- Create a REDIS server

3- Subscribe to "messege" channel from node js server

4- Publish a messege in channel "message" from php file using:

Redis::connection()->publish( 'message',"Message to broadcast with sockets");

5- Use Event Redis.on("messege") in node js to emit a socket event with the data messege

About

(Real time with laravel) Node JS Socket implementation from laravel with JWT Auth

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors