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(
15    public socket: Socket,
16    protected protocolClient: T
17  ) {}
18}
19
20export class ResponseError extends CommandError {
21  constructor(
22    msg: string,
23    public response: any
24  ) {
25    super(msg);
26  }
27}
28