I have set some conditions on my server.I am using snowplow api at client side to track those conditions.As soon as those conditions are achieved a popup should open at the client side which contains two buttons that whether the visitor at client side wants to video chat with the agent present at the server end or not. I can listen the beep sound as soon as message is sent via websocket that conditions are met and jbox function is invoked at the client side but there is not any popup being displayed showing the content and cancel and confirm button.
webSocketBridge.listen(function() {
new jBox('Confirm', {
content: 'Do you want to video chat with our agent?',
cancelButton: 'Nope',
confirmButton: 'Sure do!',
attributes: {
x: 'right',
y: 'top'
},
audio:beep.play(),
volume: 80,
closeButton:true,
autoClose:false,
});
});