works at sending text, also sends images but the on data event doesnt emit