@SocketSchemaPolicy
decorator.SocketSchemaPolicy
is similar to server module RequestSchemaPolicy
method.ValidateSchemaUtil.validateArgs
function.
This function validate the payload using ComparableSchema
object.
In case the payload not fit the schema exception will thrown with details about the validation error.@SocketOn\@ServerOn
decoratorsmsg
is indeed of type string, otherwise the function shouldn't apply.