Annotation Type OnWebSocketFrame


  • @Documented
    @Retention(RUNTIME)
    @Target(METHOD)
    public @interface OnWebSocketFrame
    (ADVANCED) Annotation for tagging methods to receive frame events.

    Acceptable method patterns.
    Note: methodName can be any name you want to use.

    1. public void methodName(Frame frame)
    2. public void methodName(Session session, Frame frame)