Search in sources :

Example 1 with ConsoleTransmission

use of com.thoughtworks.go.websocket.ConsoleTransmission in project gocd by gocd.

the class ConsoleOutputWebsocketTransmitter method consumeLine.

@Override
public void consumeLine(String line) {
    ConsoleTransmission transmission = new ConsoleTransmission(line, buildId);
    this.webSocketSessionHandler.sendAndWaitForAcknowledgement(new Message(Action.consoleOut, MessageEncoding.encodeData(transmission)));
}
Also used : Message(com.thoughtworks.go.websocket.Message) ConsoleTransmission(com.thoughtworks.go.websocket.ConsoleTransmission)

Aggregations

ConsoleTransmission (com.thoughtworks.go.websocket.ConsoleTransmission)1 Message (com.thoughtworks.go.websocket.Message)1