websocket-spec
  1. websocket-spec
  2. WEBSOCKET_SPEC-123

Invalid Code provided in section 2.1.4. Sending Messages

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: None
    • Labels:
      None

      Description

      In section 2.1.4. Sending Messages

      There was a mistake in the following code

      The second using only the annotations in the API:-
      @WebSocketEndpoint("/hello")
      public class MyHelloServer {
      @WebSocketMessage
      public String doListen(String message) {
      return "Got your message (" + text + "). Thanks !";
      }
      }
      

      The line"return "Got your message (" + text + "). Thanks !";"

      Should be "return "Got your message (" + message + "). Thanks !";"

        Activity

        Hide
        dannycoward added a comment -

        Thankyou for reporting this ! I have fixed the error in the upcoming v012 draft.

        Show
        dannycoward added a comment - Thankyou for reporting this ! I have fixed the error in the upcoming v012 draft.

          People

          • Assignee:
            dannycoward
            Reporter:
            Mohamed Taman
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: