Commit da615b9e authored by Taylor Hanayik's avatar Taylor Hanayik
Browse files

update socket calls

parent 71ecbfb8
......@@ -18,7 +18,7 @@ console.log(host, socketServerPort, fileServerPort)
// different socket clients for different widgets
//const inFileSocket = io(`ws://${host}:${socketServerPort}`)
//const runSocket = io(`ws://${host}:${socketServerPort}`)
const fsleyesSocket = io(`ws://${host}:${socketServerPort}`)
//const fsleyesSocket = io(`ws://${host}:${socketServerPort}`)
const nv = new Niivue({clipPlaneColor:[0, 0, 0, 0]})
......@@ -266,6 +266,11 @@ function CommandStringPreview({commandString}) {
}
function UseCrosshairsSwitch({useCrosshairs, setUseCrosshairs, options}) {
const [fsleyesSocket, setFsleyesSocket] = useState({})
useEffect(() => {
const sock = io(`ws://${host}:${socketServerPort}`)
setFsleyesSocket(sock)
}, [])
let fsleyesString = `fsleyes ${options['input']} ${options['output']} -cm red -a 80`
return (
<Grid
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment