Coder Social home page Coder Social logo

esshka / em-websocket-chat-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amardaxini/em-websocket-chat-demo

0.0 2.0 0.0 535 KB

Basic app for peer to peer chat demo using html5 websocket and event machine

Home Page: http://railstech.com/2011/12/pubsub-chat-using-html5-web-socket-and-em-websocket/

Ruby 27.07% HTML 13.94% JavaScript 46.33% CSS 12.66%

em-websocket-chat-demo's Introduction

It is an basic app for PUB/SUB application using EventMachine and Websocket

Step

  1. Install Dependency

bundle install

  1. Start creating your database

rake db:create && rake db:migrate

  1. Start Rails server

rails server

  1. Start Chat Server

./script/em_chat

NOTE

Default port where em_chat run is 8080 if you ever happen to change this please do make the necesary changes in public/javascripts/em_chat.js

OTHERS

The app was developed for understanding html5 websocket and event machine.
In the process we came with some hack to fix some known issue like page refresh 

Working

Once the User is logged in the a default web-socket connection is establish 
This connection only need is to notify users 

If the users wish initiate a channel he/she can do this by clicking the list of active users

We started with this application with aim of understand html5 web-socket and we havent tested this on any of our
live project so we are unsure of how much reliable the application would be on heavy load

If you every happen to test this on your live production site . We would love to hear on that

Credits

Amar Daxini

Viren Negi

em-websocket-chat-demo's People

Contributors

meetme2meat avatar amardaxini avatar

Watchers

Eugeny avatar James Cloos 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.