(method: number, payload: Uint8Array = Buffer.alloc(0))
| 52 | } |
| 53 | |
| 54 | const authentication = (method: number, payload: Uint8Array = Buffer.alloc(0)): Buffer => |
| 55 | backendMessage("R", Buffer.concat([int32(method), payload])) |
| 56 | |
| 57 | const authenticationOk = authentication(0) |
| 58 | const backendKeyData = backendMessage("K", Buffer.concat([int32(1234), int32(5678)])) |
no test coverage detected