Add reconnects.
Add server and endpoint.go