Today, Rockstar has released a patch on Xbox One and PlayStation 4 for GTA 5 that resolves issues with players experiencing connection problems online.
If you are still having issues with connection problems, check out the connection troubleshooting guide here.