modules/ballerina-core/src/main/java/org/ballerinalang/util/debugger/DebugServer.java
public void pushMessageToClient(DebugSession debugSession, MessageDTO status) {
        ObjectMapper mapper = new ObjectMapper();
        String json = null;
        try {
            json = mapper.writeValueAsString(status);
        } catch (JsonProcessingException e) {
            json = DebugConstants.ERROR_JSON;
        }
        debugSession.getChannel().write(new TextWebSocketFrame(json));
        debugSession.getChannel().flush();
    }
/**
     * Push message to client.
     *
     * @param debugSession current debugging session
     * @param status debug point information
     */
Push message to client.
@param debugSession current debugging session
@param status debug point information
Push message to client . @param debugSession current debugging session @param status debug point information
public void pushMessageToClient(DebugSession debugSession, MessageDTO status) {
        ObjectMapper mapper = new ObjectMapper();
        String json = null;
        try {
            json = mapper.writeValueAsString(status);
        } catch (JsonProcessingException e) {
            json = DebugConstants.ERROR_JSON;
        }
        debugSession.getChannel().write(new TextWebSocketFrame(json));
        debugSession.getChannel().flush();
    }
public void pushMessageToClient ( DebugSession debugSession , MessageDTO status ) { ObjectMapper mapper = new ObjectMapper ( ) ; String json = null ; try { json = mapper . writeValueAsString ( status ) ; } catch ( JsonProcessingException e ) { json = DebugConstants . ERROR_JSON ; } debugSession . getChannel ( ) . write ( new TextWebSocketFrame ( json ) ) ; debugSession . getChannel ( ) . flush ( ) ; }
Push message to client.
Push message to client .