changed to a simple text string to test
try just sending buffer
try buf.toString()
working, removed quotations from index