getError static method
Implementation
static List<int> getError(int errorCode) {
var errorHandShake = Uint8List(4);
errorHandShake[0] = SocketHelper._metaHeader;
errorHandShake[1] = (errorCode << 4);
errorHandShake[2] = 0;
errorHandShake[3] = 0;
return errorHandShake.toList(growable: false);
}