/** * Internal * * @param frame the frame to write * @return the future for the network write of the frame */ private Future<Void> outgoingAsyncFrame(WebSocketFrame frame) { FutureWriteCallback future = new FutureWriteCallback(); outgoingFrame(frame,future); return future; }
/** * Internal * * @param frame the frame to write * @return the future for the network write of the frame */ private Future<Void> outgoingAsyncFrame(WebSocketFrame frame) { FutureWriteCallback future = new FutureWriteCallback(); outgoingFrame(frame,future); return future; }
@Override public void close(int statusCode, String reason) { CloseInfo close = new CloseInfo(statusCode,reason); // TODO: disconnect callback? outgoingFrame(close.asFrame(),null); }
@Override public void close(int statusCode, String reason) { CloseInfo close = new CloseInfo(statusCode,reason); // TODO: disconnect callback? outgoingFrame(close.asFrame(),null); }