Skip to content

Commit

Permalink
Add support for version 3
Browse files Browse the repository at this point in the history
Make version 3 possible
  • Loading branch information
OlMi1 authored Mar 16, 2022
1 parent 4bf3609 commit c17e226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ onmessage = (event) => { // Execute on message from the main script
let socket = new WebSocket(`wss://magi.duinocoin.com:14808/`);

socket.onmessage = (event) => { // Execute on message from the server
if (event.data.startsWith(`2.`)) { // If the server sends it's version, it's ready to send a job
if (event.data.startsWith(`3.`)) { // If the server sends it's version, it's ready to send a job
// Show the server version in console
console.log(`CPU${workerVer}: The server is on version ${event.data}`);
// Show in the console that we're requesting a job
Expand Down

0 comments on commit c17e226

Please sign in to comment.