Skip to content

Commit

Permalink
chore: fix bad "refactoring" in #8e2743fb
Browse files Browse the repository at this point in the history
  • Loading branch information
nytamin committed Apr 2, 2024
1 parent b55f917 commit 46b0eae
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/connector/src/connection/mosSocketClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,11 @@ export class MosSocketClient extends EventEmitter {

private _getMessageId(parsedData: any, messageString: string): string | undefined {
// If there is a messageID, just return it:
if (typeof parsedData.mos.messageID === 'string' && parsedData.mos.messageID !== '')
return parsedData.mos.messageID
if (
(typeof parsedData.mos.messageID === 'string' || typeof parsedData.mos.messageID === 'number') &&
parsedData.mos.messageID !== ''
)
return `${parsedData.mos.messageID}`

if (this._strict) {
this.debugTrace(`Reply with no messageId: ${messageString}. Try non-strict mode.`)
Expand Down

0 comments on commit 46b0eae

Please sign in to comment.