fix websocket demo for ee8 jetty-12

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2023-08-01 11:48:09 +10:00
parent a1e88f78a5
commit e3bbb0f718
6 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ import jakarta.websocket.RemoteEndpoint;
import jakarta.websocket.Session; import jakarta.websocket.Session;
import jakarta.websocket.server.ServerEndpoint; import jakarta.websocket.server.ServerEndpoint;
@ServerEndpoint(value = "/java.websocket/", subprotocols = {"chat"}) @ServerEndpoint(value = "/jakarta.websocket/", subprotocols = {"chat"})
public class JakartaWebSocketChat public class JakartaWebSocketChat
{ {
private static final List<JakartaWebSocketChat> members = new CopyOnWriteArrayList<>(); private static final List<JakartaWebSocketChat> members = new CopyOnWriteArrayList<>();

View File

@ -40,7 +40,7 @@
<ul> <ul>
<li><a href="chat/">Long Polling</a></li> <li><a href="chat/">Long Polling</a></li>
<li><a href="jetty.websocket">WebSocket (Jetty API)</a></li> <li><a href="jetty.websocket">WebSocket (Jetty API)</a></li>
<li><a href="java.websocket">WebSocket (jakarta.websocket)</a></li> <li><a href="jakarta.websocket">WebSocket (jakarta.websocket)</a></li>
</ul> </ul>
</li> </li>
</ul> </ul>

View File

@ -26,7 +26,7 @@ import jakarta.websocket.RemoteEndpoint;
import jakarta.websocket.Session; import jakarta.websocket.Session;
import jakarta.websocket.server.ServerEndpoint; import jakarta.websocket.server.ServerEndpoint;
@ServerEndpoint(value = "/java.websocket/", subprotocols = {"chat"}) @ServerEndpoint(value = "/javax.websocket/", subprotocols = {"chat"})
public class JakartaWebSocketChat public class JakartaWebSocketChat
{ {
private static final List<JakartaWebSocketChat> members = new CopyOnWriteArrayList<>(); private static final List<JakartaWebSocketChat> members = new CopyOnWriteArrayList<>();

View File

@ -40,7 +40,7 @@
<ul> <ul>
<li><a href="chat/">Long Polling</a></li> <li><a href="chat/">Long Polling</a></li>
<li><a href="jetty.websocket">WebSocket (Jetty API)</a></li> <li><a href="jetty.websocket">WebSocket (Jetty API)</a></li>
<li><a href="java.websocket">WebSocket (jakarta.websocket)</a></li> <li><a href="javax.websocket">WebSocket (jakarta.websocket)</a></li>
</ul> </ul>
</li> </li>
</ul> </ul>