Created
May 31, 2022 10:21
-
-
Save danielkec/1c04013ed62c68e5a74797a37c9827b8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ServerEndpoint("/ws/echo") | |
public class EchoEndpoint { | |
@OnMessage | |
public void onMessage(Session session, String message) throws Exception { | |
session.getBasicRemote().sendText("Did you send " + message + "?"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment