docker_deployment_notes/shinobi/ShinobiHub - Article How to use FTP-based Event Triggering in Shinobi_files/clientArea_004.js

13 lines
331 B
JavaScript

$(document).ready(function(){
console.log('<%- config.webPageTitle %> : Attaching Socket.IO Handler')
$.webSocket = io({
transports: ['websocket']
})
$.webSocket.on('connect',function(d){
console.log('Websocket Connected')
})
$.webSocket.on('f',function(d){
console.log(d)
})
})