Giter Club home page Giter Club logo

red's People

Contributors

3rd-eden avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

red's Issues

Unit tests for the transport layer

They are missing, and should be considered not working until these are implemented.

  • Test for transport.js
  • Test for websocket.js
  • Test for flashsocket.js
  • Test for xhr.js
  • Test for htmlframe.js
  • Test for JSONP polling

Handle the protocol messages

The protocol handler emit's message events, these needs to be handled and executed. Every message based event should be emitted to RED RED#emit. Blacklisted event and those who start with the this.namespace should be ignored. The blacklisted events would initially include ['error']

  • message -> emit the message event
  • codec -> emit the message event
  • event -> emit the event.name event with the arguments

The rest of the event should be handled by RED.

Race condition in engine.js

There is a race condition in either engine.js or in the test suite. The incorrect connection host test fails because it throws an uncaught exception. For some odd reason, it's not captured by our error handlers or it's just not capture correctly in node_redis

See http://cl.ly/162j2I3n291I0u2U023D

Optimize sending message

Description

When we send a message we are now calling engine#publish which does a publish to all connected nodes. When you cluster is growing in size (nodes) this will create a lot of pointless overhead because node's that doesn't have user connected will also receive this message.

Possible solutions

  • When a user connects to a RED node, we are going to store the hostname and process id and put that in Redis. So when we need to send a message to that user, we can fetch the sessions connected nodes and only broadcast to those. This probably also requires the engine to listen to another for dedicated messaging`

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.