GithubHelp home page GithubHelp logo

saberfazliahmadi / websockets-drawing Goto Github PK

View Code? Open in Web Editor NEW

This project forked from devngl/websockets-drawing

0.0 0.0 0.0 1.87 MB

A first contact with the Laravel package 'Websockets' from Marcel Pociot and Freek Van der Herten

License: MIT License

PHP 80.26% Vue 5.78% HTML 13.96%

websockets-drawing's Introduction

Shared Drawing w/ WebSockets

The purpose of this project is to test the Websockets for Laravel package developed by Marcel Pociot & Freek Van der Herten as replacement for services like Pusher.

Demo

Usage

  1. Clone the repository
  2. composer install
  3. npm install
  4. cp .env.example .env
    1. Configure .env properly, you will need a working queue driver.
    2. A database. A sqlite may work fine for this little project.
  5. php artisan key:generate
  6. php artisan migrate
  7. php artisan websockets:serve
  8. php artisan queue:work —delay=3

How does it work?

Create an account (localhost:8000/register) and go to the main page (an account is needed only because whispers and private channels require being authenticated). Open the same page in multiple browser windows and whatever is draw in the whiteboard should be replicated on every other window.

It is also possible to create a room, which consist of a random string combination to create a kind of private broadcasting scope that doesn't affect other rooms.

License

The MIT License (MIT). Please see License File for more information.

websockets-drawing's People

Contributors

dependabot[bot] avatar devngl avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.