I modified some code from Internet(Source in the code) to be able to send json data to nodejs server using websocket.
Main Source(nodejs code + esp32 code): https://esp8266-shop.com/blog/websocket-connection-between-esp8266-and-node-js-server/
EPS8266 Websocket Library: https://github.com/morrissinger/ESP8266-Websocket
ESP8266 Websocket to ESP32 Websocket Library Conversion: https://techtutorialsx.com/2017/11/01/esp32-arduino-websocket-client/
Rewritten with JSON Intigration: Syed Razwanul Haque(Nabil) , https://www.github.com/Nabilphysics
Nodejs Installation: https://developer.mozilla.org/en-US/docs/Learn/Server-side/Express_Nodejs/development_environment