Skip to content

Commit

Permalink
add error message params to NetMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
ascibisz committed Dec 2, 2023
1 parent 060baca commit e1b37ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions src/simularium/RemoteSimulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
NetMessageEnum,
MessageEventLike,
NetMessage,
ErrorMessage,
} from "./WebsocketClient";
import { ISimulator } from "./ISimulator";
import { TrajectoryFileInfoV2, VisDataMessage } from "./types";
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 0 additions & 4 deletions src/simularium/WebsocketClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ export interface NetMessage {
connId: string;
msgType: number;
fileName: string;
}

export interface ErrorMessage {
msgType: number;
errorCode: number;
errorMsg: string;
}
Expand Down

0 comments on commit e1b37ad

Please sign in to comment.