Overriding the default ping protocol for native Javascript websockets
I am attempting to create a protocol for handling stale websocket connections for my Expo (React Native) project on both the client and server side. Since the ‘ws’ package has built-in callback handling for the ‘pong’ event (and for sending a ping), management on the server (NodeJS) is easy enough.