mohamed-ahmed
c54fb80f2e
progress on changing 'user join' event
2013-11-12 22:21:11 +00:00
mohamed-ahmed
7545876fc5
starting to be able to handle user connect
2013-11-11 22:55:39 +00:00
Leonardo Crauss Daronco
d6158115f1
HTML5: comment out wrong method call in RedisPublisher
...
Temporary, the method called doesn't exist anymore. Have to check it better,
but commented it for now so the app doesn't break.
2013-10-31 12:04:25 -02:00
Leonardo Crauss Daronco
ab6c73ca92
HTML5: fixing undo and clearPaper events in the server
2013-10-31 12:04:25 -02:00
Leonardo Crauss Daronco
bd4cb88e16
HTML5: restructuring the classes in the node.js server
...
Restructured the classes that read or write on redis to make more sense. Now
there's a single class that makes the bridge between redis and websockets,
and helper classes to publish to redis and to do any other actions on redis.
2013-10-31 12:04:25 -02:00
Leonardo Crauss Daronco
45463acc91
HTML5: cleanup and fix errors when a new user joins the session
...
Most changes on the method WebsocketConnection#_onUserConnected()
The server doesn't crash as much as before when a user joins.
2013-10-31 12:04:24 -02:00
tylercopeland
3866a8e4b2
chat module style updates
2013-10-30 16:09:56 -04:00
Leonardo Crauss Daronco
ed3975674e
HTML5: removing lots of unused or unnecessary code from the server
...
Cleanup the node.js server removing things that were not used or were related
to making the HTML5 client a presenter, which will not be necessary at this
first iteration.
The node.js server should also not change anything that's in redis, just read
it. Removed some of the code that changes redis.
Also updating the comments to match codo's format.
2013-10-30 10:08:16 -02:00
Leonardo Crauss Daronco
d681eac13b
HTML5: cleanup on RedisBridge
...
Moved some methods that actually do things on redis to RedisAction.
2013-10-30 10:08:15 -02:00
Leonardo Crauss Daronco
b1cdb2ea8c
HTML5: setting up a logger class
...
Prints logs with better formatting than simply calling console.log.
2013-10-30 10:08:15 -02:00
Leonardo Crauss Daronco
10f9bd592b
HTML5: Setting up the test environment for the node.js server
...
Created tests for lib/modules.coffee and a few for routes/main_router.coffee
to be used as reference.
2013-10-30 10:08:15 -02:00
Leonardo Crauss Daronco
01654424c9
HTML5: Cleaned and refactored some code used to join the session
2013-10-30 10:08:15 -02:00
Leonardo Crauss Daronco
e20e46a7a5
Replace docco by codo for docs in the HTML5 client
...
Updated the documentation of lib/modules.coffee to be used as a reference.
2013-10-30 10:08:14 -02:00
Leonardo Crauss Daronco
f42eb27049
HTML5: moving global objects into modules
...
There's a new class Module to organize modules in the application. Prevents
errors from cyclic require's.
The number of modules can still be reduced by organizing them better.
2013-10-30 10:08:14 -02:00
Leonardo Crauss Daronco
65d876fd00
HTML5: Clean up app.coffee as much as possible
...
Move methods to new classes RedisBridge and Utils.
Also made several other small fixes (typos mostly).
2013-10-30 10:08:01 -02:00
Leonardo Crauss Daronco
64de058316
HTML5: Add class RedisKeys
...
Contains methods to get the keys used on redis.
Reduced RedisAction a lot by having this new class.
2013-10-30 10:08:01 -02:00
Leonardo Crauss Daronco
7aa6e9114d
HTML5: Update redis to 0.8.4 (latest) and small fixes
...
The node.js server is now working as it was before the refactoring was
started 🍻
2013-10-30 10:08:00 -02:00
Leonardo Crauss Daronco
884147f6bc
Refactor routes/socketio as a class WebsocketConnection
...
Most of its methods are used only internally, so now the class is more isolated
than before. But still with some methods that should be refactored.
2013-10-30 10:07:30 -02:00
Leonardo Crauss Daronco
15df4de206
HTML5: Move methods from redis/index to a class RedisAction
...
Not working 100% yet and a lot more can be improved in this class.
The rest of the code should also be moved into classes like this one.
2013-10-30 10:06:58 -02:00