Skip to content
Snippets Groups Projects
Commit caa3c729 authored by yamadapc's avatar yamadapc
Browse files

Add browser stream example

parent 687791b9
No related branches found
No related tags found
No related merge requests found
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Steem.js</title>
</head>
<body>
<script src="./../dist/steem.min.js"></script>
<script>
steem.api.streamOperations(function(err, operations) {
if (err) {
document.write('Error:', err.message);
return;
}
operations.forEach(function (operation) {
document.write('New operation:', JSON.stringify(operation));
console.log('New operation:', operation);
document.write('<br />');
});
});
</script>
</body>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment