Open joenini opened 6 months ago
I am using react-native-ssdp in a react native example project.
I have the following code:
import { Client } from 'react-native-ssdp'; import { filter } from './constants' export function startSSDPDiscovery(){ console.log(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Starting Discovery"); console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Creating Client'); var client = new Client(); client.on('response', (headers, statusCode, rinfo) => { console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> rinfo:', rinfo); console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Headers:', headers); console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> statusCode:', statusCode) }); console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Starting Search'); client.search(filter); }
I am getting the following logs on Android:
LOG >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Starting Discovery LOG >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Creating Client LOG >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Starting Search LOG socket-8 binding, address: 0.0.0.0 port: 0 LOG socket-9 bound to address: 0.0.0.0 port: 0 WARN react-native-udp: setMulticastTTL() is not implemented LOG socket-8 bound to address: 0.0.0.0 port: 0 WARN react-native-udp: setMulticastTTL() is not implemented LOG >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> rinfo: {...} LOG >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Headers: {...} LOG >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> statusCode: 200 LOG >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> rinfo: {...} LOG >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Headers: {...} LOG >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> statusCode: 200
However on iOS I am not getting any response just the following logs:
LOG >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Starting Discovery LOG >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Creating Client LOG >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Starting Search LOG socket-0 binding, address: 0.0.0.0 port: 0 LOG socket-1 bound to address: 0.0.0.0 port: 57910 WARN react-native-udp: setMulticastTTL() is not implemented LOG socket-0 bound to address: 0.0.0.0 port: 50691 WARN react-native-udp: setMulticastTTL() is not implemented
I am using react-native-ssdp in a react native example project.
I have the following code:
I am getting the following logs on Android:
However on iOS I am not getting any response just the following logs: