Commit Graph

39 Commits

Author SHA1 Message Date
Matt Bonneau
cba2acd69d Merge branch 'master' of github.com:ratchetphp/RFC6455 into permessage-deflate
# Conflicts:
#	.travis.yml
#	src/Messaging/MessageBuffer.php
2019-05-01 08:31:47 -04:00
Matt Bonneau
834de74a29 Suggest correct subprotocol when subprotocol mismatch
Fixes #24
2018-02-10 11:57:48 -05:00
Matt Bonneau
5f7f53e7eb Work on php version support and testing 2017-10-30 17:01:32 -04:00
Matt Bonneau
bc16757a61 Fixup version check for permessage-deflate 2017-10-30 17:01:32 -04:00
Matt Bonneau
b84ef8b9ce Client passes all per message deflate autobahn tests 2017-10-30 17:01:32 -04:00
Matt Bonneau
8eed9e7db2 Server passing tests - client passes most tests - refactoring and API help needed 2017-10-30 17:01:32 -04:00
Matt Bonneau
7280ddcd19 Per-message deflate with options work 2017-10-30 17:01:32 -04:00
Matt Bonneau
dd636a4058 When not agreeing on a subprotocol in non-strict - send no protocol header field 2017-09-13 09:40:02 -04:00
Matt Bonneau
8128af799a Fix requested changes on PR 2017-09-12 22:33:33 -04:00
Matt Bonneau
78b7137627 Revert BC breaks to ServerNegotiator 2017-09-10 15:10:54 -04:00
Matt Bonneau
4ad549b9e0 Correct Responses in ServerNegotiator add tests 2017-04-19 23:28:04 -04:00
Chris Boden
889857a5e3 Give allowed methods in invalid method response
also a typo
2016-12-30 14:08:20 -05:00
Matt Bonneau
7ed72dc4b7 Explode Connection: header to find Update. Fixes #14 2016-07-29 01:27:59 -04:00
Chris Boden
dd75dafe97 Fix passing closing code if valid, updated user agent 2016-03-14 23:25:52 -04: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
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
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
59a30c3b72 Replace slow validator with preg_match UTF8 check 2016-01-12 20:44:07 -05:00
Chris Boden
fb00882664 Merge branch 'mbonneau-psr7-ms-tests' into psr7-multi-streamer 2016-01-10 10:42:56 -05:00
matt
503e63a233 Port RFC6455 tests from Ratchet 2015-12-30 19:38:54 -05:00
Chris Boden
a44254bd08 Cleanup 2015-12-25 13:14:36 -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
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
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
791ebaeb24 Replace evenement with callback interface
Use strict ContextInterface instead of event emitter
Keep message/frame within connection, not parser
Expect only 1 of specific WebSocket headers
Non-UTF-8 server tests passing :-)
2015-05-23 12:29:05 -04:00
matt
de76869847 Fixed up ResponseVerifier for PSR-7 2015-05-22 16:50:07 -04:00
Chris Boden
c280d8137f Update to PSR-7 v1, update to match API changes 2015-05-22 09:49:14 -04:00
matt
9890a8d7e1 Client side tests and components 2015-03-16 16:23:01 -04:00
matt
1833a0f3ec Passing some ab tests 2015-03-16 00:15:33 -04:00
matt
8653b92115 Create MessageStreamer, move some things 2015-03-15 23:15:41 -04:00
Chris Boden
5e79598448 Separate negotiation and validation 2014-11-29 13:08:04 -05:00
Chris Boden
b685f6c928 Separating protocol parsing, message handling 2014-09-08 22:05:03 -04:00