makes socket messages send
Adds text to page after message sent