@@ -0,0 +1,876 @@
+/*%0A * To change this license header, choose License Headers in Project Properties.%0A * To change this template file, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage br.ufrj.minerveditor;%0A%0Aimport java.util.*;%0Aimport javax.websocket.*;%0Aimport javax.websocket.server.ServerEndpoint;%0A%0A/**%0A *%0A * @author Avell B154 PLUS%0A */%0A@ServerEndpoint(%22/endpoint%22)%0Apublic class TinyEndpoint %7B%0A%0A    private static Set%3CSession%3E peers = Collections.synchronizedSet(new HashSet%3CSession%3E());%0A%0A    @OnMessage%0A    public String onMessage(String message) %7B%0A%0A        return message + %22 (from your server)%22;%0A    %7D%0A%0A    @OnOpen%0A    public void onOpen(Session peer) %7B%0A        peers.add(peer);%0A    %7D%0A%0A    @OnClose%0A    public void onClose(Session peer) %7B%0A        peers.remove(peer);%0A    %7D%0A%0A    @OnError%0A    public void onError(Throwable t) %7B%0A        t.printStackTrace();%0A    %7D%0A%7D%0A

add tinyendpoint java class