Commit Graph

42 Commits

Author SHA1 Message Date
Chris Boden
91af8a76d5 quality of life changes
Kill the php server after AB tests are done
Add script runners to composer for ease of use
2019-12-11 10:18:08 -05:00
Matt Bonneau
8944361dbe Update to latest react/socket and drop react/http for tests 2019-12-10 19:22:57 -05:00
Chris Boden
26ea6c2d45 Add new lines to end of header in tests
Guzzle had a BC break between minor versions throwing an exception if a header wasn’t passed without ending delimiters.
2019-03-11 09:56:19 -04:00
Chris Boden
c62f7cd95f
Merge pull request #30 from jmoo/fix-for-blocking-ops
Null out message buffer before calling onMessage handler
2019-03-10 13:10:42 -04:00
me@jmoo.io
6d7d1b8ff1 Null out message buffer before calling onMessage handler 2018-07-07 17:40:12 -04:00
Matt Bonneau
834de74a29 Suggest correct subprotocol when subprotocol mismatch
Fixes #24
2018-02-10 11:57:48 -05: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
10c7198946 Use full namespace on functions and add oh-unit dev dep 2017-04-19 23:59:18 -04:00
Matt Bonneau
4ad549b9e0 Correct Responses in ServerNegotiator add tests 2017-04-19 23:28:04 -04:00
Matt Bonneau
1d0374fd21 Replace recursion in MessageBuffer with loop 2016-12-30 15:35:40 -05:00
Matt Bonneau
7ed72dc4b7 Explode Connection: header to find Update. Fixes #14 2016-07-29 01:27:59 -04:00
Chris Boden
49cfd1eb50 Updated test coverage 2016-02-20 16:16:11 -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
3b717eb5b8 Documentation updates 2016-02-10 10:24:33 -05:00
Chris Boden
60ce5e00ff Renamed some classes, less depth 2016-02-08 22:21:56 -05:00
Chris Boden
9f405beccb Added subprotocol check for client, test fixes 2016-02-08 21:43:17 -05:00
Chris Boden
cd89941a49 Formatting 2016-02-08 07:55:35 -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
4f15d6558e Try to fix travis build 2016-01-10 10:54:32 -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
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
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
matt
f1451e0bd8 Fixed issue with client tests 2015-05-24 23:50:02 -04:00
matt
6676b05d02 Client tests using ContextInterface 2015-05-24 19:50:51 -04:00
Chris Boden
1c6a486e8a Fixed failing UTF-8 tests, increased performance 2015-05-24 11:12:59 -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
c2a51b62ef Passing Autobahn tests (except compression) 2015-03-18 11:12:11 -04:00
matt
9890a8d7e1 Client side tests and components 2015-03-16 16:23:01 -04:00
matt
1970699b75 Autobahn test script 2015-03-16 00:22:38 -04:00