2 Replies Latest reply on May 16, 2016 11:42 PM by Blagovest Todorov

    Cannot connect to Websocket but the "endpoint" is running

    Blagovest Todorov Newbie

      Hello,

       

      I am back..

       

      This is the start of my code:

       

      @ServerEndpoint("/server/")

      public class Server {

       

         @OnOpen
         public void onOpen(Session session) {

           }

      }

      The endpoint is registered:

       

      2016-05-16 13:15:38,599 INFO  [io.undertow.websockets.jsr] (ServerService Thread Pool -- 70) UT026003: Adding annotated server endpoint class Server for path /server/

       

      I tried to connect like that ws://yada-yada/server/ or ws://yada-yada.com:8080/server/ or ws://yada-yada:8000/server/

      and i get

       

      ERROR: undefined

      DISCONNECTED