( payload: string, then: (clientId: string, remainder: string) => void, )
| 29 | ]; |
| 30 | |
| 31 | export const ifPayloadValid = ( |
| 32 | payload: string, |
| 33 | then: (clientId: string, remainder: string) => void, |
| 34 | ) => { |
| 35 | const splitAt = payload.indexOf(MESSAGE_SEPARATOR); |
| 36 | if (splitAt !== -1) { |
| 37 | then(slice(payload, 0, splitAt), slice(payload, splitAt + 1)); |
| 38 | } |
| 39 | }; |
| 40 | |
| 41 | const receivePayloadRemainder = ( |
| 42 | fromClientId: Id, |
no test coverage detected
searching dependent graphs…