How to open an HTTP server in response mode

I want to be able to send music to sonos using my API. Unfortunately, the only way I know is to send the URI to the device so that it can download it.

I have already visited the react-native-httpserver package. This has not been tested on Android. So I looked at Android nanoHTTPD and other similar packages in iOS like CocoaHTTPServer is.

You do not need to create a wrapper over these packages to create something cross-platform, but I am wondering if there is another solution in Javascript or some kind of work on react-native-tcp

+7
javascript android ios react-native
source share
2 answers

I will answer my question, time has passed and some packages have been released. Even with limitations, but so far it looks promising:

+1
source

Try using react-native-fetch-blob https://github.com/wkh237/react-native-fetch-blob , I used it to send photos, and it works very well. It supports both ios and Android

-one
source

All Articles