add get and post to socket