I'm a beginner in
java networking(and network programming in general) and I'm trying out WebSocket interface in java.net.http package. That said, I'm having a problem making it work. So, I have this code:
Once I run the code, I'm having these errors
I'm using apache web server btw. How do I resolve WebSocketHandshakeException? Can I
test WebSocket on a localhost? or do I need to configure my apache web server. As of now, I'm using the default settings of apache web server.