--- "effect": patch --- default ws close codes to 1001 in case they are undefined