resolves #10 removed autopublish package. added "publish" function on server side and "subscribe" on client side.