Can any one help by sharing sample code,
I will explain my task below.
Server A is the data provider (They gave me websocket link to stream data).. Server B means (My aws server i want save that data to database whenever i received from Server A)..
Need a node js code that can connect Server A, Until i stop Server B it should save the data to Server B database.
For example suppose i am starting httpd server there i am using service httpd start service httpd restart
Similarly my application should work..
Thanks in advance..