fix websocket demo for ee8 jetty-12
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
a1e88f78a5
commit
e3bbb0f718
|
@ -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<>();
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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<>();
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue