Skip to content

Commit

Permalink
updated NW params for Wifi AP (#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
hardikgarg02 authored Jun 20, 2024
1 parent 70bd0cf commit 7fe4bfa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ios/OpenBot/OpenBot/Data/Server/Connection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class Connection: sendInitialMessageDelegate, startStreamDelegate {
tcpOptions.keepaliveIdle = 2
let parameters = NWParameters(tls: nil, tcp: tcpOptions)
parameters.includePeerToPeer = true
parameters.allowLocalEndpointReuse = true
connection = NWConnection(to: endpoint, using: parameters)
start()
msgDelegate = self
Expand Down

0 comments on commit 7fe4bfa

Please sign in to comment.