Open lriuui0x0 opened 4 years ago
Additionally, if you use the notFound
handler, it will not be triggered, and the default 404 page is returned:
http.webSocket("/api/service", websocket);
http.notFound((req, res) -> new String(Files.readAllBytes("index.html")));
I can confirm that if you add a webSocket() the notFound() stops working.
If I have the following route definiton:
The catch all route will actually shortcut the websocket connection.