mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 08:28:15 -04:00
removed socket.js
This commit is contained in:
@@ -1,21 +0,0 @@
|
|||||||
|
|
||||||
(function (window) {
|
|
||||||
document.addEventListener('DOMContentLoaded', (event) => {
|
|
||||||
var socket = io();
|
|
||||||
|
|
||||||
socket.on('connect', function() {
|
|
||||||
console.log('Connected to the server');
|
|
||||||
});
|
|
||||||
|
|
||||||
// Listen for job updates from the server
|
|
||||||
socket.on('job_update', function(data) {
|
|
||||||
console.log('Received job update:', data);
|
|
||||||
});
|
|
||||||
|
|
||||||
document.getElementById('fetchJobsButton').addEventListener('click', function() {
|
|
||||||
const serviceId = 'b1226555-1f1a-472c-9086-043b0a69f4ec'; // Example service ID
|
|
||||||
socket.emit('fetch_jobs', serviceId);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
})(window);
|
|
||||||
Reference in New Issue
Block a user