Commit Graph

249 Commits

Author SHA1 Message Date
Guillermo Rauch
c245cf3eb3 JSON fix for IE 2011-06-14 07:44:38 -03:00
Guillermo Rauch
f2cad28b93 Added packet buffering capabilities to Socket#packet. 2011-06-13 12:30:53 -03:00
Guillermo Rauch
1e7b4a596d Changed; trigger open in XHR transports right after starting polling. 2011-06-13 12:18:16 -03:00
Guillermo Rauch
7ec45b516a Added; process buffer after opening socket. 2011-06-13 12:17:54 -03:00
Guillermo Rauch
9218020111 Fixed; make sure to send connect packet after opening sub-socket. 2011-06-13 12:13:56 -03:00
Guillermo Rauch
240b2cd094 Added buffer and namespaces data structures initialization to Socket constructor. 2011-06-13 12:13:35 -03:00
Guillermo Rauch
8fefeb7bd3 Added missing util#toArray. 2011-06-13 02:25:37 -03:00
Guillermo Rauch
838c5ed6f8 Removed automatic transport opening upon creation. 2011-06-12 21:45:29 -03:00
Guillermo Rauch
80c78de852 Fixed style and added TODO for Transport#onData handling. 2011-06-12 21:44:55 -03:00
Guillermo Rauch
f09ba3ba94 Removed onConnect upon socket open. 2011-06-12 21:34:44 -03:00
Guillermo Rauch
80e9edc6a7 Removed onConnect call in handshake since we now have connect packets for all
namespaces, including `''`.
Changed; style fixes
2011-06-12 21:31:10 -03:00
Guillermo Rauch
d931496aa6 Added missing ACK support to message, json and event packets.
Added ACK handling.
2011-06-12 21:30:14 -03:00
Guillermo Rauch
50640cd571 Added ack function to SocketNamespace packet handling. 2011-06-12 21:29:47 -03:00
Guillermo Rauch
ae3be33977 Fixed SocketNamespace signature. 2011-06-12 21:29:06 -03:00
Guillermo Rauch
138a6fb2ae Changed; perform default host/port setting in io#connect. 2011-06-12 21:27:19 -03:00
Guillermo Rauch
addf31ab26 Adapted client encoder/decoder for event spec change. 2011-06-11 18:10:38 -03:00
Guillermo Rauch
5686f42af4 Added symlink to lib/io by the name of the project. 2011-06-09 13:31:27 -03:00
Guillermo Rauch
debafe5a54 Fixed io.util.request.
Removed fixed 80 port for node (must review this).
2011-06-09 13:28:19 -03:00
Guillermo Rauch
582c233a39 Fixed typo. 2011-06-09 13:28:07 -03:00
Guillermo Rauch
e05b9ce990 Added other necessary io public properties. 2011-06-08 20:49:46 -03:00
Guillermo Rauch
15fefa0664 Changed; Transport#send is now only concerned with strings. 2011-06-07 17:13:18 -03:00
Guillermo Rauch
688497239f Changed; style fixes. 2011-06-07 17:13:08 -03:00
Guillermo Rauch
631ad0ddad Added Transport#packet.
Changed; Transport#onHeartbeat now leverages Transport#Packet.
2011-06-07 17:12:41 -03:00
Guillermo Rauch
56c67784d4 Added Socket#packet.
Removed Socket#send.
2011-06-07 17:11:54 -03:00
Guillermo Rauch
caa61e1f60 SocketNamespace#packet now calls Socket#packet. 2011-06-07 17:11:39 -03:00
Arnout Kazemier
5be17ed500 Connect event should now fire again.. 2011-06-07 21:15:22 +02:00
Arnout Kazemier
343779bb1b Don't double encode.. Removed .packet and just updated heartbeat to do a .send instead 2011-06-07 20:53:06 +02:00
Arnout Kazemier
87e8f7888e Fixed missing .packet method 2011-06-06 22:41:04 +02:00
Guillermo Rauch
c83764f99f Fixed error and disconnect handling for subsockets.
Added onConnect call in onOpen.
2011-06-06 12:36:19 -03:00
Guillermo Rauch
4926211566 Fixed decodePacket reference. 2011-06-06 12:31:48 -03:00
Guillermo Rauch
c5ccaa9adc Added missing packet parameter. 2011-06-06 12:25:10 -03:00
Vladimir Dronnikov
ca4e2f5dcf WS#prepareUrl should override Transport#prepareUrl 2011-06-06 08:16:10 -04:00
Vladimir Dronnikov
2ddd53d46c WS#connect -> WS#open 2011-06-06 08:02:17 -04:00
Vladimir Dronnikov
55b98e282e Merge branch 'develop' of github.com:3rd-Eden/Socket.IO into develop 2011-06-06 07:44:42 -04:00
Vladimir Dronnikov
0c52c5c3b2 cleanup 2011-06-06 07:40:41 -04:00
Arnout Kazemier
2c4350afbd Merge branch 'develop' of git://github.com/dvv/Socket.IO into develop 2011-06-06 13:40:16 +02:00
Vladimir Dronnikov
e365ae8ec7 typo. Socket#onConnect() is given use 2011-06-06 07:28:09 -04:00
Arnout Kazemier
07e3605f92 Websocket so send error to socket.onError not to websocket.onError which will cause a loop 2011-06-06 13:20:06 +02:00
Vladimir Dronnikov
21e730fe60 Merge branch 'develop' of github.com:3rd-Eden/Socket.IO into develop 2011-06-06 07:17:46 -04:00
Arnout Kazemier
979f692921 Renamed this.socket to this.websocket as it clashes with the Socket instance in the tranport.. which is also called this.socket 2011-06-06 13:10:54 +02:00
Vladimir Dronnikov
4e5f83587a Merge branch 'develop' of github.com:3rd-Eden/Socket.IO into develop 2011-06-06 04:52:24 -04:00
Arnout Kazemier
f864d2ec72 Fixes wrong inhert & mixin arguments + added io.sockets 2011-06-06 10:46:00 +02:00
Vladimir Dronnikov
c260ad8756 Merge branch 'develop' of github.com:3rd-Eden/Socket.IO into develop
Conflicts:
	lib/transports/websocket.js
	socket.io.min.js
2011-06-06 03:47:42 -04:00
Vladimir Dronnikov
d1f1ce4575 this typos 2011-06-06 03:40:31 -04:00
Arnout Kazemier
02ba0d7db8 Updated to the correct position of the parsers 2011-06-05 21:38:33 +02:00
Arnout Kazemier
e04f5e36b2 Use native JSON if it's supported
Updated reference in transport to the new location of the parser
Updated the test suite to use the io.JSON
2011-06-05 21:32:38 +02:00
Arnout Kazemier
766f5d595e Added qunit test suite for the parser 2011-06-05 20:58:53 +02:00
Arnout Kazemier
c8c2c6ede4 add all parse methods under the parser namespace 2011-06-05 19:34:55 +02:00
Arnout Kazemier
796506f91a Fixed uniqueUri as parseUri doesn't return :// for protocols
it https should default to port 443 instead of port 80

the merge function now allows deep merges without chocking on recursion
2011-06-02 22:33:35 +02:00
Arnout Kazemier
4d87a8ccd6 Only check for complete, loaded indicates that the DOM is loaded, and not the page and all its resources 2011-06-02 20:57:07 +02:00