Added protocol enumeration to javascript client