https://issues.apache.org/bugzilla/show_bug.cgi?id=54127

          Priority: P2
            Bug ID: 54127
          Assignee: dev@tomcat.apache.org
           Summary: WsOutbound is missing a ping method
          Severity: enhancement
    Classification: Unclassified
          Reporter: sean.winterber...@gmail.com
          Hardware: PC
            Status: NEW
           Version: 7.0.32
         Component: Catalina
           Product: Tomcat 7

Created attachment 29577
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29577&action=edit
patch which adds ping functionality to WsOutbound

WsOutbound currently lacks the ability to send a ping request to the client.

Attached patch creates a new method pong which takes in a ByteBuffer and passes
the ping byte (0x09) to sendControlMessage which sets the opcode byte on the
frame.  Refactored pong method to all call sendControlMessage as opposed to
duplicate code. 

Added websocket.Constants import for OPCODE_PING/PONG.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to