1/**
2 * Copyright (c) 2021 Expo, Inc.
3 * Copyright (c) 2018 Drifty Co.
4 *
5 * This source code is licensed under the MIT license found in the
6 * LICENSE file in the root directory of this source tree.
7 */
8import { Socket } from 'net';
9
10import { CommandError } from '../../../../utils/errors';
11import { ProtocolClient } from '../protocol/AbstractProtocol';
12
13export abstract class ServiceClient<T extends ProtocolClient> {
14  constructor(public socket: Socket, protected protocolClient: T) {}
15}
16
17export class ResponseError extends CommandError {
18  constructor(msg: string, public response: any) {
19    super(msg);
20  }
21}
22