Source
void send(data) {
if ((data is String)) {
_blink.BlinkWebSocket.instance.send_Callback_1_(this, data);
return;
}
if ((data is Blob)) {
_blink.BlinkWebSocket.instance.send_Callback_1_(this, data);
return;
}
if ((data is TypedData)) {
_blink.BlinkWebSocket.instance.send_Callback_1_(this, data);
return;
}
if ((data is ByteBuffer)) {
_blink.BlinkWebSocket.instance.send_Callback_1_(this, data);
return;
}
throw new ArgumentError("Incorrect number or type of arguments");
}