@DTS Engineer I ran some more tests on this today. Here are the results:
Device setup: Both the devices are connected to same infrastructure wifi and not connected to Ethernet.
Case 1:
Browser setup:
parameters.prohibitedInterfaceTypes = [.wifi]
parameters.includePeerToPeer = true
Connection setup:
.prohibitedInterfaceTypes([.wifi])
.peerToPeerIncluded(true)
In above case The devices are getting discovered. But unable to connect. I see below error when trying to send a message after initiating a connection(The connection never moves to ready state):
(Network.NWError error 89 - Operation canceled)
Case 2:
Browser setup:
parameters.prohibitedInterfaceTypes = [.wifi]
parameters.includePeerToPeer = true
Connection setup:
.prohibitedInterfaceTypes([])
.peerToPeerIncluded(true)
In above case, devices are getting discovered as well as getting connected.
Topic:
App & System Services
SubTopic:
Networking
Tags: