Add Jenkins CI pipeline and WebSocket test #8

Merged
natalie merged 7 commits from issue-5-jenkins-ci into main 2026-10-23 20:11:00 +00:00
Showing only changes of commit e14262db4d - Show all commits
+15
View File
@@ -0,0 +1,15 @@
const WebSocket = require('ws');
const PORT = process.env.PORT || 8080;
const wss = new WebSocket.Server({ port: PORT });
const question = {
question: 'What is the capital of France?',
answer: 'Paris'
};
wss.on('connection', (ws) => {
ws.send(JSON.stringify(question));
});
console.log(`SeatBack Trivia WebSocket server listening on port ${PORT}`);