Commit Graph

85 Commits

Author SHA1 Message Date
Guillermo Rauch
3d11b176fe Expose listener class
Bumped node version
Updated client
Make sure constructors are called
Added tests
2010-07-28 16:33:41 -07:00
Guillermo Rauch
910de83942 Added node-websocket-client for testing 2010-07-28 14:31:04 -07:00
Guillermo Rauch
b2c0b78130 Fixed example
Fixed broken references
2010-07-28 14:29:50 -07:00
Guillermo Rauch
22ef7918b3 Changed chat example to match the new more node-friendly syntax
Clients now fire `disconnect` event.
2010-07-28 11:44:10 -07:00
Guillermo Rauch
7b1dba192c Updated client 2010-07-28 11:29:18 -07:00
Guillermo Rauch
18d78f5448 Merge branch 'master' of github.com:LearnBoost/Socket.IO-node
Conflicts:
	lib/socket.io/client.js
2010-07-28 11:16:28 -07:00
Guillermo Rauch
0edd16d575 Clients now emit message event and inherit EventEmitter
More encoding tests
Encoding fix for non-array arguments
Leveraged Array.isArray
Handling of undefined and null values
2010-07-28 11:14:58 -07:00
Guillermo Rauch
41100e5a51 Clients now emit message event and inherit EventEmitter 2010-07-28 10:58:08 -07:00
Guillermo Rauch
7b3781c2c8 Updated protocol notes 2010-07-28 10:09:43 -07:00
Guillermo Rauch
deb59f6725 Deleted DS_Store committed accidentally 2010-07-28 10:05:48 -07:00
Guillermo Rauch
f95988ff59 README clarification 2010-07-28 10:04:20 -07:00
Guillermo Rauch
fc40156a8c Fixed encoding / decoding
Moved library files into lib/socket.io for future npm support
Added tests for encoding / decoding
Fixed inheritance of certain classes
Fixed options supports
2010-07-28 09:59:19 -07:00
Guillermo Rauch
ce6fa8611b Path restructuring 2010-07-19 15:13:11 -07:00
Guillermo Rauch
5ba6035260 Removed oo requirement / global
Removed sys requirement
2010-07-19 15:10:31 -07:00
Guillermo Rauch
18068b56cd Added frame after message length
Make sure message is always a string
2010-07-19 03:00:25 -07:00
Guillermo Rauch
ca4589d929 Removed dependency on js-oo
Removed legacy utilities and simplified into utils.js
More usage of module.exports
2010-07-19 02:50:33 -07:00
Guillermo Rauch
dc08ca5fb6 Switched main classes to module exports 2010-07-19 02:16:40 -07:00
Guillermo Rauch
fa90d2c520 Added expresso submodule for testing 2010-07-19 02:11:11 -07:00
Guillermo Rauch
dc960f9bc6 Moving test to example 2010-07-19 02:08:01 -07:00
Guillermo Rauch
1f75828eb7 Updated README 2010-07-19 02:06:24 -07:00
Guillermo Rauch
0a9743d56f Updating client submodule to new location 2010-07-19 02:05:56 -07:00
Guillermo Rauch
0985193ae1 Decoding checks for proper framing 2010-07-19 02:04:43 -07:00
Guillermo Rauch
1aa7845c62 New timeout system based on heartbeats 2010-07-19 01:55:44 -07:00
Guillermo Rauch
8bf30afda2 Proper support for draft 76 0.4.1 2010-06-29 21:23:59 -07:00
Oliver Morgan
b971a18e5b Fixed WebSockets to follow latest 76 draft.
TODO: Implement the closing handshake, specified in draft-76
2010-06-27 13:57:44 -07:00
Guillermo Rauch
57c8d37d47 Implemented heartbeats 0.4 2010-06-26 15:04:55 -07:00
Guillermo Rauch
5e329229b4 Fix for flush in htmlfile 0.3.9 2010-06-25 14:57:57 -07:00
Guillermo Rauch
ea36d24d9e Updated Socket.IO client 0.3.8 2010-06-18 03:02:51 -03:00
Guillermo Rauch
d79de5aa56 Multipart fix for Node 0.1.98 0.3.7 2010-06-18 02:38:08 -03:00
Guillermo Rauch
06769c4ca7 Object fixes 2010-06-01 16:19:29 -03:00
Christiaan
df876e37df New changes passing JSlint as much as possible again 2010-06-01 21:05:20 +02:00
Christiaan
31d119740c Merge branch 'master' of http://github.com/LearnBoost/Socket.IO-node
Conflicts:
	lib/socket.io/client.js
	lib/socket.io/listener.js
	lib/socket.io/transports/websocket.js
	lib/socket.io/transports/xhr-multipart.js
	lib/socket.io/transports/xhr-polling.js

Conflicts Resolved
2010-06-01 20:54:13 +02:00
Guillermo Rauch
f3c28e298a Cross domain support:
XHR-Polling
 XHR-Multipart
WebSocket support for Webkit nightly / Chromium nightly
Added heartbeats to multipart
2010-06-01 08:01:11 -03:00
Brian
71d80181fa Fixed multipart streaming so that it works properly again (especially for cross-domain requests). Tested on Firefox 3.6.4. 2010-05-30 22:52:28 -07:00
Brian
0e483a05a5 Moved the cross-site origin checking to the client class, added cross-domain support to xhr-* transports, added ping functionality for the xhr-multipart transport, and fixed the listener class where the log function that can be overridden was not being referenced everywhere. 2010-05-30 22:52:16 -07:00
Christiaan
c1fca0c520 Almost fully passing JSlint 2010-05-29 15:21:46 +02:00
Visnu Pitiyanuvath
1918b75360 implement the sec-websocket-key handshake for latest chrome and webkit builds
http://www.whatwg.org/specs/web-apps/current-work/complete/network.html#opening-handshake
2010-05-28 11:15:55 -07:00
Christiaan
5e255ccdf9 Use exports instead of this as exports is the official way according to the commonjs spec 2010-05-28 19:37:46 +02:00
Christiaan
9a306fddab variables which are no constructor shouldn't start with a uppercase letter 2010-05-28 19:24:38 +02:00
Christiaan
dc593e9972 Use EventEmitter public API instead of the private _events array 2010-05-28 19:22:54 +02:00
Guillermo Rauch
7f5228abc3 Fixed syntax error -.- 0.3.6 2010-05-28 06:12:31 -03:00
Guillermo Rauch
0ad237ddf5 Fix for stream not writable problems 0.3.5 2010-05-28 05:28:25 -03:00
Guillermo Rauch
3134940ed6 Updated io.Socket initialization to work on hosts other than localhost
Updated client
0.3.4
2010-05-27 21:45:01 -03:00
Guillermo Rauch
0f783bc06a Fixed htmlfile
- end > close for detecting closed connections
 - Added hearbeats
 - added flush() in write
2010-05-27 21:33:07 -03:00
Virtuo
dd3d829173 Correct bug due to variable name clash.
IMO: this kind of code should be put in an external lib and 100% tested.
0.3.3
2010-05-21 13:09:14 +02:00
Guillermo Rauch
fbce6379a5 Note about submodules 2010-05-13 22:05:31 -03:00
Guillermo Rauch
0459c95848 Added support for Node 0.1.94
Close timeout for transports with keep-alive / websocket set to 0
Close timeout for xhr-polling reduced from 8 seconds to 5 seconds
Now you can pass options to specific transports from io.listen()
Some cleanup
0.3.2
2010-05-12 12:16:44 -03:00
Guillermo Rauch
67815ec15d http > git in gitmodules 2010-05-11 19:34:25 -03:00
Guillermo Rauch
87f62373c5 Client updated 0.3.1 2010-04-30 09:02:11 -03:00
Guillermo Rauch
a557bd6acb Updated client to 0.2.0 0.3 2010-04-30 08:55:09 -03:00