Skip to content

Commit

Permalink
Merge pull request #15 from OlMi1/patch-1
Browse files Browse the repository at this point in the history
Add support for version 3
  • Loading branch information
sys-256 authored Mar 18, 2022
2 parents 4bf3609 + c17e226 commit c808eaf
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 c808eaf

Please sign in to comment.