Move DATA frame handling code to switch-case of frame type.
Attach a file by drag & drop or click to upload