14package org.dartlang.vm.service.internal;
16import com.google.gson.JsonObject;
17import de.roderick.weberknecht.WebSocket;
18import de.roderick.weberknecht.WebSocketException;
19import org.dartlang.vm.service.logging.Logging;
26 private WebSocket webSocket;
29 this.webSocket = webSocket;
33 public void add(JsonObject json) {
34 String request = json.toString();
35 if (webSocket ==
null) {
41 webSocket.send(request);
42 }
catch (WebSocketException
e) {
49 if (webSocket !=
null) {
52 }
catch (WebSocketException
e) {
WebSocketRequestSink(WebSocket webSocket)
void add(JsonObject json)
static Logger getLogger()
void logError(String message)
void logInformation(String message)
const CatchEntryMove de[]