Commit Graph

28 Commits

Author SHA1 Message Date
Chris Boden
1e5898c92a Merge branch 'refs/heads/frag' into dev 2011-11-15 11:31:26 -05:00
Chris Boden
5386b4c066 Folder restructure
Just reorganized the folders.  Namespacing broken, unit tests broken, nothing works.
2011-11-12 14:29:10 -05:00
Chris Boden
118923e784 Messaging Interfaces
Added Messaging and Framing Interfaces
2011-11-12 13:51:49 -05:00
Chris Boden
021a185753 init fragmentation
Calculated the intended message length of HyBi-10 frame
Commented out socket recv buffer
Added onError to demonstration
2011-11-11 16:37:53 -05:00
Chris Boden
32d9dda703 Stability
Added onError hook to observable interface
Handling errors in proper places, no longer a catchall
Temporarily throwing errors on all non-message HyBi-10 frames ("fixes" FF breaking everything)
2011-11-10 21:23:31 -05:00
Chris Boden
ad258e6eaa Socket Buffering
Server now buffers incoming messages until it (thinks it) receives the full message.
Slight tweak of HyBi-10: spacing, FIN indicator, continuation frame recognition
Sockets close() if container is destroyed
2011-11-10 20:07:02 -05:00
Chris Boden
bf0787b7cd Removed Logging
Removed logging - use Decorator as replacement (https://raw.github.com/cboden/RatchetApps/master/lib/RatchetApps/Logger.php)
2011-11-10 10:49:23 -05:00
Chris Boden
cf3ba7c4ad Bug fixes
Ratchet Exception now accepts SocketInterface for better troubleshooting
WebSocket protocol calls onOpen on child app after handshake
Misc little bugs found
2011-11-09 10:55:45 -05:00
Chris Boden
15ec375405 Closure
onClose hook is triggered upon is CloseConnection command (server side) now.  Allowing applications to handle any final executions before the connection is closed.
Updated some API documentation.
2011-11-08 11:04:30 -05:00
Chris Boden
d880d29729 Refactoring
Refactored Command/Composite pattern, now as expected
Server recursively executes commands
Above changes fixed issues of server/client not being notified on forced disconnects
2011-11-07 16:02:01 -05:00
Chris Boden
66e656ec63 Documentation 2011-11-07 12:06:01 -05:00
Chris Boden
60a8a04e40 Cleanup
Fixed bad interface implementation in Close Command
Removed old code from Composite (now in Factory)
Removed done @todo's
Cleaned up Ping/Pong
Added HyBi-10 frame/unframe test
2011-11-07 11:55:07 -05:00
Chris Boden
1ba8021df8 Parse HTTP header fix
Using a standard method to parse the HTTP headers, with partial fallback
2011-11-07 10:29:18 -05:00
Chris Boden
0de53cf7ee Refactored Commands 2011-11-06 18:24:50 -05:00
Chris Boden
2d7774fd65 Hixie-76 protocol
Implemented WebSocket Hixie-76 protocol
2011-11-01 14:10:12 -04:00
Chris Boden
f9d609074c Moar cleaning
Added a few unit tests
Added MIT license
Changed Array's to array's
2011-11-01 11:01:43 -04:00
Chris Boden
3127efc981 Cleanup
Removed redundant Interfaces
Removed a number of unused methods
2011-11-01 09:52:41 -04:00
Chris Boden
57a4500d82 Frame WebSocket outgoing messages
Implemented framing/unframing code from @lemmingzshadow for HyBi-10 protocol
2011-10-31 17:34:42 -04:00
Chris Boden
01b51041d5 API documentation 2011-10-28 15:15:23 -04:00
Chris Boden
51d0516aa3 Cleanup
Application stack working!
Existing unit tests fixed
Implemented HyBi-10 unframing
2011-10-28 14:12:39 -04:00
Chris Boden
ed1a35ff74 HyBi-10 handshake
Hackishly implemented the HyBi-10 handshake
2011-10-27 13:07:24 -04:00
Chris Boden
9bc0cbce25 Changed attempt to use decorator pattern for everything to chain of command pattern 2011-09-05 19:39:37 -04:00
Chris Boden
30ce6c0386 Server building 2011-09-05 18:39:36 -04:00
Chris Boden
f17f59856e Started observer pattern, API updates, unit tests 2011-09-05 13:10:57 -04:00
Chris Boden
5ce4a7b837 Stubs, coverage, api docs 2011-09-05 08:53:21 -04:00
Chris Boden
04875dadcd Unit testing coverage 2011-09-04 20:47:43 -04:00
Chris Boden
8c9f55240c Structure/stubs 2011-09-04 17:30:21 -04:00
Chris Boden
5320efe4e7 File structure set, Hiby10 token handshake complete and unit tested 2011-09-04 12:11:24 -04:00