I don't think the web3.js 1.0 docs cover this.
I found this post. but the answer seems outdated. How to properly create a raw transaction and sign it using web3 in browser
I'd like to use web3.js 1.0 the future is now.
what i have so far:
var web3 = new Web3('https://ropsten.infura.io/<top secret>'); var abi = <abi things> var address = <contract address> var myContract = new web3.eth.Contract(abi,address); myContract.methods.getmessage().call().then(console.log);