refactor socket createTweet