test cases for payload limits

This commit is contained in:
Jörg Breitbart
2019-07-26 17:35:37 +02:00
parent a9b2728c07
commit bffa78585e
6 changed files with 73 additions and 11 deletions
+1 -5
View File
@@ -4,7 +4,7 @@
*/
import { IOscHandler, IHandlerCollection, OscFallbackHandler } from 'common/parser/Types';
import { OscState } from 'common/parser/Constants';
import { OscState, PAYLOAD_LIMIT } from 'common/parser/Constants';
import { Disposable } from 'common/Lifecycle';
import { utf32ToString } from 'common/input/TextDecoder';
import { IDisposable } from 'common/Types';
@@ -162,10 +162,6 @@ export class OscParser extends Disposable {
}
}
// limit allowed payload for OscHandlerFactory
const PAYLOAD_LIMIT = 50000000;
/**
* Convenient class to allow attaching string based handler functions
* as OSC handlers.