Chris Boden
e65ecde592
Moved messaging interfaces
2011-11-15 11:37:29 -05:00
Chris Boden
1e5898c92a
Merge branch 'refs/heads/frag' into dev
2011-11-15 11:31:26 -05:00
Chris Boden
7534023708
Documentation
2011-11-15 11:08:38 -05:00
Chris Boden
9d36a37bf5
readme
2011-11-15 08:57:20 -05:00
Chris Boden
2720864d79
readme
2011-11-15 08:54:36 -05:00
Chris Boden
7c033ee2cc
Updated readme
2011-11-15 08:53:28 -05:00
Chris Boden
08db1e6fac
Minor Refactoring
2011-11-15 08:22:01 -05:00
Chris Boden
ec607090d6
Wrapped WebSocket connection data in object
...
Trying to prevent accidental parameter clobbering
2011-11-14 17:06:21 -05:00
Chris Boden
3363c08f36
Cleanup
...
Removed reference to remaining ObservableInterface's and SocketInterface's
2011-11-14 16:51:16 -05:00
Chris Boden
09a2fb8f81
Server app cleanup
2011-11-14 16:43:52 -05:00
Chris Boden
b641887b0e
WebSocket declutter
...
Removed Client class and lookup from WebSocket app.
WebSocket doesn't need a collection of connections as it's a messaging intermediary.
Data is saved/attached to the specific connection as needed and leaves no state behind.
2011-11-14 16:18:09 -05:00
Chris Boden
f3c7dd4d7f
Socket Proxy
...
Replaced passing SocketInterface everywhere with a proxy object
2011-11-14 15:56:30 -05:00
Chris Boden
551888aa3c
WebSocket Interface update
2011-11-13 14:10:18 -05:00
Chris Boden
e412f574e7
Fixed unit test coverage
2011-11-13 13:48:49 -05:00
Chris Boden
c6a91692f7
Interface Cleanup
...
Separated Observable interface from Decorator interface, also separated config method to its own interface
Cleaned up unit tests to reflect interface changes
2011-11-13 13:37:42 -05:00
Chris Boden
47b7110dc1
Namespaces
...
Fixed all the namespaces to match new folder structure
2011-11-12 20:51:54 -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
d9283d9593
Updated Docs
2011-11-10 22:45:18 -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
c8a0911452
API Documentation
2011-11-08 12:20:18 -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
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
c45962c7b4
Done todo's
...
Removed a bunch of @todo annotations that have been completed
2011-11-08 08:51:53 -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
6a5c708775
README
...
Added PHP syntax to README
2011-11-01 14:34:29 -04:00
Chris Boden
1fe4b051be
Updated README
...
Added a bit more details, described WebSocket support
2011-11-01 14:33:44 -04:00
Chris Boden
2d7774fd65
Hixie-76 protocol
...
Implemented WebSocket Hixie-76 protocol
2011-11-01 14:10:12 -04:00
Chris Boden
7c5c5ed6ce
Standardized Interfaces
...
Allowed null to be returned instead of NullCommand on Observers
Removed profanity
2011-11-01 11:44:28 -04:00
Chris Boden
68e718cc54
Documentation
...
Updated the simple user documentation in README
2011-11-01 11:14:23 -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
d4d67eba44
Cleanup
...
Removed another couple unused methods
2011-11-01 09:55:10 -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
07f5d49996
Readme
...
Updated the README file to reflect application structure changes
2011-10-28 14:20:25 -04:00