implemented POST for socket.io