diff --git a/src/simularium/RemoteSimulator.ts b/src/simularium/RemoteSimulator.ts index 087f8d5d..bf18aebb 100644 --- a/src/simularium/RemoteSimulator.ts +++ b/src/simularium/RemoteSimulator.ts @@ -7,7 +7,6 @@ import { NetMessageEnum, MessageEventLike, NetMessage, - ErrorMessage, } from "./WebsocketClient"; import { ISimulator } from "./ISimulator"; import { TrajectoryFileInfoV2, VisDataMessage } from "./types"; @@ -143,7 +142,7 @@ export class RemoteSimulator implements ISimulator { // TODO: implement callback } - public onErrorMsg(msg: ErrorMessage): void { + public onErrorMsg(msg: NetMessage): void { this.logger.error( "Error message of type ", msg.errorCode, diff --git a/src/simularium/WebsocketClient.ts b/src/simularium/WebsocketClient.ts index 1a02254c..d3b50cdc 100644 --- a/src/simularium/WebsocketClient.ts +++ b/src/simularium/WebsocketClient.ts @@ -6,10 +6,6 @@ export interface NetMessage { connId: string; msgType: number; fileName: string; -} - -export interface ErrorMessage { - msgType: number; errorCode: number; errorMsg: string; }