I've tried using websockets within my Golang application served from Google's managed vm but I couldn't get it to work, from Chrome developer console I'm getting:
WebSocket connection to 'ws://127.0.0.1:8080/connect' failed: Error
during WebSocket handshake: Unexpected response code: 400" and on my
backend I'm getting: "websocket: connection header != upgrade.
My question, does managed vm supports Golang websockets? If so a code snip would be appreciated.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…