Skip to content

Commit

Permalink
fix socket Url
Browse files Browse the repository at this point in the history
  • Loading branch information
joneugster committed Aug 22, 2024
1 parent 8f069c9 commit 426f382
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion demo/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ import './App.css'
function App() {

const monacoRef = useRef<HTMLDivElement>(null)
const socketUrl = 'ws://' + window.location.hostname + ':8080/'
console.log(`[demo]: socketUrl`, socketUrl)
const [options, setOptions] = useState<LeanMonacoOptions>({
websocket: {
url: 'ws://localhost:8080/'
url: socketUrl
},
vscode: {
// The default options are defined in `LeanMonaco.start` and can be overwritten here.
Expand Down

0 comments on commit 426f382

Please sign in to comment.