add socket url to templates. We have yet to use it.