Commit Graph

31 Commits

Author SHA1 Message Date
me@jmoo.io
6d7d1b8ff1 Null out message buffer before calling onMessage handler 2018-07-07 17:40:12 -04:00
Štefan Kušnír
7b36995d00 FIX PHP Fatal error: Allowed memory size of exhausted 2018-05-02 08:45:50 +02:00
Matt Bonneau
1d0374fd21 Replace recursion in MessageBuffer with loop 2016-12-30 15:35:40 -05:00
Chris Boden
055b3eca13 Merge branch 'close-reason' 2016-03-16 08:32:52 -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
60ce5e00ff Renamed some classes, less depth 2016-02-08 22:21:56 -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
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
31d2618057 Added __toString fn to DataInterface 2015-12-25 13:14:15 -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
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
matt
c8ce2adcb1 Removed echo 2015-05-25 09:51:50 -04:00
matt
f1451e0bd8 Fixed issue with client tests 2015-05-24 23:50:02 -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
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
c1027be9a6 Spiking SPL interfaces 2014-11-29 13:08:39 -05: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