I gang

very small project - node.js / websocket / mariaDB - modify an example node.js websocket client page so that it will re-subscribe / re-connect / re-boot.

very small project - node.js / websocket / mariaDB - modify an example node.js websocket client page so that it will re-subscribe / re-connect / re-boot.

what i want the code to do -

1) check the db pool connection.

2) if no pool connection after # tries, re-boot db - please provide code (commented-out) to re-boot the other pc on my network when it is operational.

3) subscribe to the websocket channel (or re-subscribe if it is a re-start) - don't open websocket unless/until db pool connection is checked (see above).

4) terminate websocket if it fails - use a timeout so that db has time to process any outstanding insert queries.

5) re-subscribe if the subscription fails (eg no data, no heartbeat, no pong).

6) re-boot if re-subscribe/re-connect fails.

7) send email if an event requiring manual attention occurs (eg i have to manually reboot the system).

i need these modifications because i live in a house where :

- the power supply to my router &/or to my computers could be switched off at any time, without any notice, and obviously i won't know about it if i'm not at home or i'm asleep.

- the internet network connection fails several times a day and usually takes 5-10 minutes to reboot itself and then it will have a different ip address so the websocket connection will be lost.

so i need modifications that will enable me to switch the system on and only have to attend it in order to do occasional jobs that must be done manually, eg restoring power or re-booting the router.

the node.js client page simply collects data for trading a single digital currency so that i can process the data and decide if i want to try trading digital currencies :

- if i decide to trade, then i will need someone to code at least two more much larger projects.

- if you make a good job of this project then you will be invited to quote for the larger projects.

read my requirements carefully and don't bid if you are unable to satisfy them all as i don't want to appoint the project to someone who takes a deposit and then says that they can't do part of it for some reason. i have had freelancers do that in the past.

the node.js page uses "books" data stream - i will be using your code with other streams so please use naming system that does not include reference to "books" or "wBooks" so that i can easily use your code with other streams without risk of confusion or conflict.

i have removed all my processing code from the node.js page - my processing code will include a checksum (line 148) so please include option to re-subscribe if checksum is wrong (you don't need to code the checksum).

how i want your code provided -

- properly commented.

- use named functions : do not use arrow functions : do not use anonymous functions.

- written in a style similar to my own (i am an amateur code and it may confuse me if i have to try to understand complex code).

- don't call on external libraries as i don't want to rely on code that i can't see/understand.

- prepare your code in 2 ways - (1) all on one page, and (2) divided into modules for easy reading/understanding.

- don't keep unnecessary weight on the stack : close/terminate/nullify/remove everything that becomes redundant (pool connections, listeners, websockets) after re-subscribe/re-connect.

my computer set-up -

- at the moment, the node.js page & the db are both running on a single linux-based machine.

- once i am happy that your code works well, i intend to add a second linux-based machine to my network and move the db to the second machine.

i hope that all the above is clear. please feel free to ask any questions.

don't bid a silly price. it would just be a waste of your time & mine.

Evner: JavaScript, Node.js, MariaDB

Se mere: small project language, small project management, small project ideas programming, small project freelance, fulltime offline data entry small project fulltime chennai, aspnet small project, microphone speaker small project, login logout small project php example, programming example small project, node js websocket example, small project plan example, node js websocket send message to client, example of small project

Om arbejdsgiveren:
( 1 bedømmelse ) Brighton, United Kingdom

Projekt ID: #30182325

Tildelt til:


I'm writing to you regarding Web Developer opening. which I discovered on Indeed. I have been working as a Web Developer at Magicsoft pvt ltd for more than 1 and 3 month now, and during that time rue revamped web secur Flere

£15 GBP in 7 dage
(0 bedømmelser)

3 freelancere byder i gennemsnit £277 timen for dette job


Hello. I have 10+ years experience in web development using Node.js, Laravel, PHP, MySQL. And in last year, I have ever developed many responsive page using the same variauble CSS framework as Bootstrap, Tailwindcss, e Flere

£15 GBP in 7 dage
(0 bedømmelser)

Hey . Are u there? 15 GBP Kidding me? I have rich experience in Node js/ Maria DB PLs contact me. From Toni

£800 GBP in 7 dage
(0 bedømmelser)