Commit Graph

25 Commits

Author SHA1 Message Date
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
9a35690e98 onClose bug fix
Fixed a bug where WebSocket::onClose could have a missed lookup from closing too soon
2011-11-08 09:46:48 -05:00
Chris Boden
67538706ed Revert "Merge branch 'dev' of github.com:cboden/Ratchet into dev"
This reverts commit b31a65a99a, reversing
changes made to 68a618c1cd.
2011-11-08 09:39:25 -05:00
Chris Boden
b31a65a99a Merge branch 'dev' of github.com:cboden/Ratchet into dev
Conflicts:
	lib/Ratchet/Protocol/WebSocket.php
2011-11-08 09:37:57 -05:00
Chris Boden
68a618c1cd Command Refactoring
Refactored Command namespace; reusing more code, standardized interfaces
WebSocket handles wrapping messages better/properly now
2011-11-08 09:36:48 -05:00
Chris Boden
1d14119bb5 Command Refactoring
Refactored Command namespace; reusing more code, standardized interfaces
WebSocket handles wrapping messages better/properly now
2011-11-08 09:32:20 -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
1495354e7c HTTP parser bug fix 2011-11-07 10:17:39 -05:00
Chris Boden
0de53cf7ee Refactored Commands 2011-11-06 18:24:50 -05:00
Chris Boden
a6073a87eb Communication between versions
HyBi-10 and Hixie-76 can now talk to each other!
2011-11-01 15:19:03 -04: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
7514ce8e85 Cleaning Up
Cleaned up a lot of the code
Added API documentation
Fixed some unit tests
Much cleaning left to be done
2011-10-27 19:17:38 -04:00
Chris Boden
1c0b8ed32d Restructure Overhaul
Server accepts single Observable object (was Chain of Responsibility)
WebSocket is decorator of application implementing Observable
Observable interface returns Command pattern object
Interfaced all the things
Code is a mess
Unit tests are broken
2011-10-27 18:36:29 -04:00
Chris Boden
ed1a35ff74 HyBi-10 handshake
Hackishly implemented the HyBi-10 handshake
2011-10-27 13:07:24 -04:00
Chris Boden
3af575b4e9 Cleanup 2011-10-25 08:58:36 -04:00
Chris Boden
ac8644125c Refactoring
Major restructure, dropped aggregate idea, can't get around php golden hammer, the all mighty array, problem
Unit tests broken
2011-10-24 09:26:15 -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