<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How to access to endpoint of websocket in Axon.ivy 7.x?</title><link>https://answers.axonivy.com/questions/3502/how-to-access-to-endpoint-of-websocket-in-axon-ivy-7-x</link><description>&lt;p&gt;hi Ivyteam,&lt;/p&gt;
&lt;p&gt;I just created a websocket API by java in Ivy.&lt;/p&gt;
&lt;p&gt;Here is my example:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;import java.io.IOException;

import javax.websocket.OnClose;
import javax.websocket.OnError;
import javax.websocket.OnMessage;
import javax.websocket.OnOpen;
import javax.websocket.Session;
import javax.websocket.server.ServerEndpoint;

@ServerEndpoint("/echo")
public class EchoWebSocket {
    @OnOpen
    public void onOpen(Session session) {
        System.out.println("onOpen::" + session.getId());        
    }
    @OnClose
    public void onClose(Session session) {
        System.out.println("onClose::" +  session.getId());
    }

    @OnMessage
    public void onMessage(String message, Session session) {
        System.out.println("onMessage::From=" + session.getId());

        try {
            session.getBasicRemote().sendText(message.toUpperCase());
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    @OnError
    public void onError(Throwable t) {
        System.out.println("onError::" + t.getMessage());
    }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I don't know how to access to this endpoint in Ivy like "http://localhost:8081/ivy/echo"?
Please give me the feedback soon!&lt;/p&gt;
&lt;p&gt;Thanks and best regards&lt;/p&gt;
&lt;p&gt;Cuong Phan&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/3502/how-to-access-to-endpoint-of-websocket-in-axon-ivy-7-x" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 30 Oct 2018 08:39:09 -0400</lastBuildDate><item><title>Answer by SupportIvyTeam</title><link>https://answers.axonivy.com/questions/3502/how-to-access-to-endpoint-of-websocket-in-axon-ivy-7-x/3517</link><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;At the moment we do not support this in an IvyProject.
You have to make a jar and put it to the webapps/ivy/WEB-INF/lib directory.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">SupportIvyTeam</dc:creator><pubDate>Tue, 30 Oct 2018 08:39:09 -0400</pubDate><guid>https://answers.axonivy.com/questions/3502/how-to-access-to-endpoint-of-websocket-in-axon-ivy-7-x/3517</guid></item></channel></rss>