upnpserver
upnpserver copied to clipboard
upnpserver not working with nwjs 12
hi olivier
the upnpserver do not work anymore with nwjs 12, itried to update with the lastest version but first many problems with the logger (nw do not like console.error .warn etc...)
and if it start normally i can t see it diffused on the network seems start but nothing, i f i start another old version of ht5streamer it s diffused and i close it but it still working (wish you understand) so upnpserver in nw12 just not presented on the network i think ...
thanks
if it can help ...
UPNPserver.ssdpServer
SsdpServer {sock: Socket, domain: null, _events: Object, _maxListeners: undefined, _logger: Logger…}_adInterval: 10000_events: Object_location: "http://192.168.0.36:10293/DeviceDescription.xml"_logger: Logger_maxListeners: undefined_socketBound: true_ssdpIp: "239.255.255.250"_ssdpPort: 1900_ssdpServerHost: "239.255.255.250:1900"_ssdpSig: "node.js/1.2.0 UPnP/1.1 node-ssdp/2.0.1"_ssdpTtl: 1_started: true_ttl: 1800_udn: "uuid:f0ad46c3-837b-4c3e-a47a-bcd401959004"_unicastHost: "0.0.0.0"_usns: Objectdomain: nullsock: Socket__proto__: SsdpServer
UPNPserver.httpServer
Server {domain: null, _events: Object, _maxListeners: undefined, _connections: 0, _handle: TCP…}_connectionKey: "6::::10293"_connections: 0_events: Object_handle: TCP_maxListeners: undefined_slaves: Array[0]_usingSlaves: falseallowHalfOpen: trueconnections: (...)get connections: function deprecated() {set connections: function deprecated() {domain: nullhttpAllowHalfOpen: falsepauseOnConnect: falsetimeout: 120000__proto__: Server
ok i modified this in my own client.js
https://iojs.org/api/dgram.html
then when i call UPNPserver.stop() the upnpserver appear and works Oo
seems i have a conflict but node-ssdp need an update too with node 0.12 or io.js, jxcore etc...
++
Hello smolleyes
Ok I note it ! (I will move to node 0.12 soon ...) The best way is to write to the owner of node-ssdp project and ask him if he will update his project for node 0.12 or io.js ! If he does not want to continue, I (or you ?) can fork his work !
Regards, Olivier
Hello, I have made a fix for nodejs stable 0.12.0 ... It works fine at home !