Commit Graph

158 Commits

Author SHA1 Message Date
Chris Boden
055b3eca13 Merge branch 'close-reason' 2016-03-16 08:32:52 -04:00
Chris Boden
17a92ab617 Merge branch 'wrong-close' 2016-03-16 08:32:47 -04:00
Chris Boden
276c19cb3d Bad markdown 2016-03-15 19:47:16 -04:00
Chris Boden
1a5aeaf5a4 Added support for reason to close frame
Also doing strict type checks on integers
Add Autobahn badge
2016-03-15 19:46:31 -04:00
Chris Boden
ccef4dc384 Echo valid clode code back to peer handler 2016-03-15 11:55:15 -04:00
Chris Boden
dd75dafe97 Fix passing closing code if valid, updated user agent 2016-03-14 23:25:52 -04:00
Chris Boden
cbd376e1b3 Merge branch 'psr7-multi-streamer' 2016-02-20 16:26:08 -05:00
Chris Boden
49cfd1eb50 Updated test coverage 2016-02-20 16:16:11 -05:00
Chris Boden
bbc7818ddb Strict Sub-Protocol check off by default
More of an implementation detail, not specified in spec
2016-02-20 16:07:27 -05:00
Chris Boden
b2bd4607ae Moved tests to align namespace with target 2016-02-15 18:10:53 -05:00
Chris Boden
ac4d13cc09 Inject RequestVerfier instead of instantiating 2016-02-15 17:03:10 -05:00
Chris Boden
e75c843fc9 Rename Negotiator -> ServerNegotiator for consistence 2016-02-10 17:56:28 -05:00
Chris Boden
84db350a66 Fixed invalid json 2016-02-10 10:25:54 -05:00
Chris Boden
3b717eb5b8 Documentation updates 2016-02-10 10:24:33 -05:00
Chris Boden
5689ba3bd0 Merge pull request #9 from ratchetphp/psr7-renaming
Renamed some classes, less depth
2016-02-08 22:41:06 -05:00
Chris Boden
60ce5e00ff Renamed some classes, less depth 2016-02-08 22:21:56 -05:00
Chris Boden
71f10cb9ee Merge pull request #8 from ratchetphp/psr7-client-refactor
Client refactor
2016-02-08 22:20:33 -05:00
Chris Boden
9f405beccb Added subprotocol check for client, test fixes 2016-02-08 21:43:17 -05:00
Chris Boden
0f4df7fed5 Verify proper header 2016-02-08 08:43:20 -05:00
Chris Boden
cd89941a49 Formatting 2016-02-08 07:55:35 -05:00
Chris Boden
4095a7ed6e Change scope, defensive 2016-02-08 07:51:54 -05:00
Chris Boden
1e828bf7d4 Client negotiation cleanup 2016-02-08 07:50:17 -05:00
Chris Boden
affba40d16 Client refactor
Class is now re-entrant instead of keeping state
Remove non-specified default RFC headers
Accept strict URI type to cut down on error handling
2016-02-07 13:40:38 -05:00
Chris Boden
d4ea99ffc0 Merge branch 're-utf8' into psr7-multi-streamer 2016-01-27 23:41:43 -05:00
Chris Boden
797df1b318 HHVM not allowed to fail 2016-01-27 23:41:03 -05:00
Chris Boden
f6bf0ca07c Use mbstring if available
HHVM seems to have mbstring loaded/enabled by default
2016-01-27 19:59:58 -05:00
Chris Boden
04a7b41d5a Revert HHVM version change on TravisCI 2016-01-27 18:55:28 -05:00
Chris Boden
8aef77c118 Attempt newer HHVM on TravisCI 2016-01-27 18:41:35 -05:00
Chris Boden
59a30c3b72 Replace slow validator with preg_match UTF8 check 2016-01-12 20:44:07 -05:00
Chris Boden
4f15d6558e Try to fix travis build 2016-01-10 10:54:32 -05:00
Chris Boden
fb00882664 Merge branch 'mbonneau-psr7-ms-tests' into psr7-multi-streamer 2016-01-10 10:42:56 -05:00
Chris Boden
35fa78c0c1 Cleanup test automation 2016-01-10 10:42:48 -05:00
Matt Bonneau
dce1ef5272 Rename Unit to unit 2016-01-01 00:40:58 -05:00
matt
503e63a233 Port RFC6455 tests from Ratchet 2015-12-30 19:38:54 -05:00
matt
26f995abba Remove unused TestCase class 2015-12-30 13:39:27 -05:00
matt
c31bea9f30 Fixup tests for new MessageStreamer 2015-12-26 14:31:45 -05:00
Chris Boden
a44254bd08 Cleanup 2015-12-25 13:14:36 -05:00
Chris Boden
31d2618057 Added __toString fn to DataInterface 2015-12-25 13:14:15 -05:00
Chris Boden
01ed6ecf72 Strict comparisons 2015-12-25 12:41:26 -05:00
Chris Boden
1579666238 Accept exception factory for performance gains 2015-12-22 21:11:46 -05:00
Chris Boden
3c3588fc8b MessageStreamer refactor
Remove notion of context and nested callbacks
Each connection will create an instance of MessageParser to hold message/frame state
2015-12-22 20:16:55 -05:00
Chris Boden
06263cd9a5 Reverse the order of context to make optional 2015-06-04 23:20:05 -04:00
Chris Boden
59464f855c Replace ContextInterface with callable's
Replace ContextInterface with callable's
Move message/frame validation back into streamer
Always return frame objects from check
Move close code validation to validator, not base element
2015-06-01 22:39:17 -04:00
Chris Boden
d8babac7e7 Fixed sub-protocol handling 2015-05-31 15:43:58 -04:00
Chris Boden
e45cd158bd Add support for Sub-Protocol selection 2015-05-31 15:24:44 -04:00
Chris Boden
ce50c6ceb4 Frame masking perf
refs ratchetphp/ratchet#226
2015-05-30 23:28:31 -04:00
Chris Boden
621b8f836c Re-use exception
UnderflowExceptions have been used as flow control
Now have a factory to re-throw the same one to not generate a stack trace.
2015-05-30 23:27:54 -04:00
Chris Boden
5cdd8959dc Refactoring
onMessage delivers unMaked payload
msg validation moved from Message to MessageValidation
Unify return types
Context return should be input
Remove deprecated Connection
2015-05-30 23:27:02 -04:00
Chris Boden
af15a56cb4 Custom error responses for failed handshake
Including React SocketClient for client tests
Use re-entrants in test server
2015-05-26 19:07:26 -04:00
Chris Boden
3fb32b2827 Merge branch 'mb-psr7' into psr7 2015-05-26 18:05:35 -04:00