parse different ws frames
some updates and additions
fixed ws header