Golang socket server for handling JSON requests with ids