-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebSocket connection to 'wss://127.0.0.1:5500/fsws' failed #45
Labels
bug
Something isn't working
Comments
Can you tell me what OS and Browser you use? Do you use |
not use https,just http://127.0.0.1:5500/index.html ,but in browser console WebSocket connection to 'wss://127.0.0.1:5500/fsws' failed
|
I see. Yes the error is from inside the iFrame. Try to wait for five-server to connect: <script>
function load() {
function run(e) {
console.log('Some JavaScript Code...')
document.getElementById('iT').src = 'examples/0001.html'
}
// wait for five-server to connect
const five = document.querySelector('[data-id="five-server"]')
if (five) five.addEventListener('connected', run)
window.addEventListener('load', run)
}
</script>
<h1>test iframe</h1>
<iframe id="iT" onload="load()"></iframe> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
A clear and concise description of what the bug is.
try connect websocket then failed many times...
WebSocket connection to 'wss://127.0.0.1:5500/fsws' failed
Have a question?
Join the discussions instead.
The text was updated successfully, but these errors were encountered: