Improve websockets compliance - packet.type must only be set on first frame