wizek / tali Goto Github PK
View Code? Open in Web Editor NEWOnline collaborative tool for next generational cooperation
Online collaborative tool for next generational cooperation
Make it handle all the following situations
Those who open the page get the socket.io broadcasts from the server, even if they don't log in.
Related to session handling, might not support multi-connection by single user.
o.O
Now the editor events are bound only after the authentication.
But no one can connect to the editor channel without authentication, so it's an unneccesary double-check.
To be placed on GitHub.
Should broadcast, should display.
Teszt - Elek
Not even at the most basic level.
Argument checking is part of BE vaidation, so therefore is to be tested for and implemented.
// Expected types: user.xyFunct(String, Object, Function) // test for: test.doesNotThrow(user.xyFunct) test.doesNotThrow(function() { user.xyFunct(null, Object, Function) user.xyFunct(String, null, Function) user.xyFunct(String, Object, null) })
Something like that.
Or would you rather write documentation for the API @Fodi69?
That would allow me not to check inside the code for what's required, but still doesn't replace throughout testing.
@Wizek
I'm thinking about separating the changes into 3 commits.
Or is it not necessary?
Upload Gravatar profile picture! :D
Can you think of any case where it might? E.g. very unlikely case of duplicates or something?
127.0.0.1 - - [Thu, 25 Aug 2011 22:19:12 GMT] "GET / HTTP/1.1" 200 107 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1"
127.0.0.1 - - [Thu, 25 Aug 2011 22:19:13 GMT] "GET /lib/require/require.js HTTP/1.1" 304 - "http://localhost:3000/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1"
127.0.0.1 - - [Thu, 25 Aug 2011 22:19:13 GMT] "GET /js/main.js HTTP/1.1" 304 - "http://localhost:3000/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1"
Error: ENOENT, No such file or directory 'www/favicon.ico'
127.0.0.1 - - [Thu, 25 Aug 2011 22:19:13 GMT] "GET /js/connect.js HTTP/1.1" 200 1060 "http://localhost:3000/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1"
debug - served static /socket.io.js
127.0.0.1 - - [Thu, 25 Aug 2011 22:19:13 GMT] "GET /js/cookie.js HTTP/1.1" 304 - "http://localhost:3000/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1"
debug - client authorized
info - handshake authorized 18198795121663360633
debug - setting request GET /socket.io/1/websocket/18198795121663360633
debug - set heartbeat interval for client 18198795121663360633
debug - client authorized for
debug - websocket writing 1::
debug - websocket received data packet 5:1+::{"name":"set envId","args":["yq1c9maki6wu8dzp4pw5ma9b9dd3kzyaha289vcelt3lxqx8"]}
[2011-08-25 22:19:14.496] ERROR [user.js:48:11] - Nem található a hivatkozott session
[2011-08-25 22:19:14.497] DEBUG [user.js:49:11] =>
Searched { envId: 'yq1c9maki6wu8dzp4pw5ma9b9dd3kzyaha289vcelt3lxqx8' }
debug - sending data ack packet
debug - websocket writing 6:::1+["Session doesn't have a username!"]
debug - emitting heartbeat for client 18198795121663360633
debug - websocket writing 2::
debug - set heartbeat timeout for client 18198795121663360633
debug - websocket received data packet 2::
debug - got heartbeat packet
debug - cleared heartbeat timeout for client 18198795121663360633
debug - set heartbeat interval for client 18198795121663360633
debug - emitting heartbeat for client 18198795121663360633
debug - websocket writing 2::
debug - set heartbeat timeout for client 18198795121663360633
debug - websocket received data packet 2::
debug - got heartbeat packet
debug - cleared heartbeat timeout for client 18198795121663360633
debug - set heartbeat interval for client 18198795121663360633
/cygdrive/e/Work Area/Code/Tali/node_modules/mysql/lib/client.js:293
this._queue[0].fn();
^
TypeError: Cannot call method 'fn' of undefined
at Client._handlePacket (/cygdrive/e/Work Area/Code/Tali/node_modules/mysql/lib/client.js:293:22)
at Parser.<anonymous> (native)
at Parser.emit (events.js:64:17)
at /cygdrive/e/Work Area/Code/Tali/node_modules/mysql/lib/parser.js:71:14
at Parser.write (/cygdrive/e/Work Area/Code/Tali/node_modules/mysql/lib/parser.js:576:7)
at Socket.<anonymous> (native)
at Socket.emit (events.js:64:17)
at Socket._onReadable (net.js:678:14)
at IOWatcher.onReadable [as callback] (net.js:177:10)
Consider swiching from shortcut.js to https://github.com/jeresig/jquery.hotkeys/blob/master/jquery.hotkeys.js
QUnit doesn't always count the asserts in a test if all of them were successful. But it seems to be picking up when errors happen always. Not anymore, see below.
How to fix this quirk?
only testing issue tracker
[
{id:123, position:-123321},
{id:124, position:NULL, headline:'12+l'},
]
Based on this: http://jsfiddle.net/Wizek/JPmEA/
For all the functions on the back end up until 0.0.7
git submodule add <gitub_link> <where_to_put_locally>
function(username, password, envId, socketId, cb)
Note: Major points bare emphasis.
Tests are happy as hell, and I can't get it to connect in the development environment.
Here: 15c5e0d
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.