Example usage for io.netty.handler.codec.http.websocketx BinaryWebSocketFrame BinaryWebSocketFrame

List of usage examples for io.netty.handler.codec.http.websocketx BinaryWebSocketFrame BinaryWebSocketFrame

Introduction

In this page you can find the example usage for io.netty.handler.codec.http.websocketx BinaryWebSocketFrame BinaryWebSocketFrame.

Prototype

public BinaryWebSocketFrame() 

Source Link

Document

Creates a new empty binary frame.

Usage

From source file:org.wso2.carbon.identity.agent.userstore.HeatBeatTask.java

License:Open Source License

/**
 * Send ping message to server.//from www  .  j  a  v a2  s  . c  o  m
 */
private void sendPingToServer() {
    if (LOGGER.isDebugEnabled()) {
        LOGGER.debug("Sending ping message to Identity Cloud.");
    }
    //TODO should send PingWebSocketFrame and it doesn't support at the moment
    channel.writeAndFlush(new BinaryWebSocketFrame());
}