add publish function to isServer, add subscribe function to isClient