• Icon: Sub-task Sub-task
    • Resolution: Unresolved
    • Icon: Major Major
    • 3.x Future
    • 2.17.0.Final
    • Java EE

      It would be good to be able to create a Websocket Client endpoint with the following command :

      websocket-new-client-endpoint --name MyClientEndpoint 

      This would generate the following code :

      public class MyClientEndpoint {

      As a shortcut (see FORGE-2394) we could easily implement basic methods such as :

      websocket-new-client-endpoint --name MyClientEndpoint --methods ON_OPEN ON_CLOSE ON_ERROR ON_MESSAGE

      This would generate a client endpoint with the four following methods :

      public class MyClientEndpoint {
          public void onOpen(Session session) {
          public void onClose(CloseReason closeReason) {
          public void onMessage(String message, Session session) {
          public void onError(Throwable t) {

            Unassigned Unassigned
            agoncal Antonio Goncalves (Inactive)
            0 Vote for this issue
            1 Start watching this issue