Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.04 KB

readme.md

File metadata and controls

40 lines (27 loc) · 1.04 KB

Sockets

Demo code for implementing Event Broadcasting with Laravel 5.1 and Sockets.io, based on the Taylor Otwell's video.

Requirements

  • How to setup a project on homestead

Installation

To install this demo, clone the repository, create a new homestead site and run these commands in homestead:

  • Run composer install
  • Run npm install
  • Run node socket.js

There are two routes: / and /event, open them in two different browser tab, reload /event and you will see the web socket in action!

Technologies:

  • Laravel 5.1
  • NodeJS
  • Socket.io
  • VueJS

Concepts:

  • Events
  • Event broadcasting
  • Web sockets

Resources