wailsapp / wails

Create beautiful applications using Go
https://wails.io
MIT License
25.18k stars 1.21k forks source link

wails app connet websocket is a bug? #2658

Closed OpenZeroSir closed 1 year ago

OpenZeroSir commented 1 year ago

Description

I tried to debug a wails application with vscode,and connetting websock from frontend,connection failed with The server did not accept the WebSocket handshake.but websocket connection work fined on command wails build wails build -debug wails dev. buginfo1

To Reproduce

1.open a websocket server 2.start debug wails applicatin with vscode 3.open wails application developer tools 4.run new WebSocket("websocket server address") in developer tools console

Expected behaviour

websocket connections success

Screenshots

this is the information of websocket connectting. buginfo2

Attempted Fixes

No response

System Details

Wails CLI v2.4.1

Scanning system - Please wait (this may take a long time)...Done.

# System

OS           | Arch Linux
Version      | Unknown   
ID           | arch      
Go Version   | go1.20.2  
Platform     | linux     
Architecture | amd64     

# Wails

Version         | v2.4.1
Package Manager | pacman

# Dependencies

Dependency | Package Name | Status    | Version    
*docker    | docker       | Available | 1:23.0.6-1 
gcc        | gcc          | Installed | 13.1.1-1   
libgtk-3   | gtk3         | Installed | 1:3.24.37-1
libwebkit  | webkit2gtk   | Installed | 2.40.1-2   
npm        | npm          | Installed | 8.19.2-2   
pkg-config | pkgconf      | Installed | 1.8.1-1    
* - Optional Dependency

# Diagnosis

Your system is ready for Wails development!
Optional package(s) installation details: 
  - docker: sudo pacman -S docker

 ♥   If Wails is useful to you or your company, please consider sponsoring the project:
https://github.com/sponsors/leaanthony

Additional context

No response

leaanthony commented 1 year ago

Thanks for opening this. We are investigating 👍

leaanthony commented 1 year ago

@CeilAI - please try the latest release 🙏

OpenZeroSir commented 1 year ago

thanks@leaanthony,it's a bug of vscode maybe,updated to latest release and still failed The server did not accept the WebSocket handshake with vscode .it work with vscodium,i tried to vscodium instead.