|
|
@ -76,9 +76,11 @@ const App = () => { |
|
|
const client = new Client(); |
|
|
const client = new Client(); |
|
|
const connection = client.createHTTPConnection(); |
|
|
const connection = client.createHTTPConnection(); |
|
|
setConnection(connection); |
|
|
setConnection(connection); |
|
|
// connection.connect(window.location.hostname, undefined, true);
|
|
|
|
|
|
connection.connect({ |
|
|
connection.connect({ |
|
|
address: '192.168.1.103', |
|
|
address: |
|
|
|
|
|
import.meta.env.NODE_ENV === 'production' |
|
|
|
|
|
? window.location.hostname |
|
|
|
|
|
: import.meta.env.SNOWPACK_PUBLIC_DEVICE_IP, |
|
|
receiveBatchRequests: false, |
|
|
receiveBatchRequests: false, |
|
|
tls: false, |
|
|
tls: false, |
|
|
fetchInterval: 2000, |
|
|
fetchInterval: 2000, |
|
|
|