4 Replies
websocket doesnt shit itself and prints this

Received msg: {"name":"Wilma Connelly","nameFirst":"Gracie","nameLast":"Weber","nameMiddle":"Celena","namePrefix":"Mr.","nameSuffix":"V"}
https://www.npmjs.com/package/react-use-websocket makes it easier i guess.
npm
react-use-websocket
React Hook for WebSocket communication. Latest version: 4.2.0, last published: 5 months ago. Start using react-use-websocket in your project by running
npm i react-use-websocket
. There are 41 other projects in the npm registry using react-use-websocket.This thread hasn’t had any activity in 12 hours, so it’s now locked.
Threads are closed automatically after 12 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/902647189120118794/1035923724500733982