FusBeast
Search…
⌃K

Listen to FusBeast Socket

Socket via Transaction Reference

All transaction reference is posted to any client connected to fusbeast socket
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
<script src="https://api.fusbeast.com/socket.io/socket.io.js"></script>
<!-- <script src="/js/socket.io/socket.io.js"></script> -->
</head>
<body>
<h3>Socket Listen Test</h3>
<script>
var socket = io('https://api.fusbeast.com');
// alert("socketer")
socket.on("pay_status", function(reference){
//: reference is the transaction reference generated
for wallet funding, checkout e.t.c
// : You might want to call endpoint Merchant/Balance and update UI
alert(reference)
})
</script>
</body>
</html>
.