I am investigating if it is possible to set a "web socket server" at a mobile device (different than the common approach of"web socket server at a backend").
In order to do that I am searching a method for iOS and Android devices to accept WebSocket requests.
Side note, I am not so sure if the security design of the mobile operating systems allow that or not.
Is there any method to set the web socket servers at mobile devices? (If yes, one step further is there any method that can be used with react-native?)