Cell-cell signaling in either direction across the synaptic cleft, mediated by an endocannabinoid ligand.