More generic websocketing