# configuration/strings/browser.strings.ts

> 21 lines of code and 8 definitions.

Tree: Bane's Lab Build Scripts
Language: typescript
Layer: product
Canonical: https://banes-lab.com/anatomy/build-scripts#file-build-scripts-configuration-strings-browser-strings-ts
Source text: https://banes-lab.com/source/build-scripts/configuration/strings/browser.strings.ts.txt

Listed in [configuration/strings](https://banes-lab.com/api/source/build-scripts/configuration/strings.md), after [configuration/strings/asset.strings.ts](https://banes-lab.com/source/build-scripts/configuration/strings/asset.strings.ts.md) and before [configuration/strings/catalog.strings.ts](https://banes-lab.com/source/build-scripts/configuration/strings/catalog.strings.ts.md).

## Definitions

- `protocolFailed` (lexical_declaration, line 6, exported)
- `socketClosed` (lexical_declaration, line 10, exported)
- `notObjectMessage` (lexical_declaration, line 14, exported)
- `browserStartFailed` (lexical_declaration, line 22, exported)
- `consoleEcho` (lexical_declaration, line 26, exported)
- `SOCKET_FAILED` (lexical_declaration, line 1, exported)
- `NOT_TEXT_MESSAGE` (lexical_declaration, line 4, exported)
- `noReply` (lexical_declaration, line 18, exported)

## Contained in

- [configuration/strings](https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-configuration-strings.md)

## Used by

- [core/adapters/browser.adapter.ts](https://banes-lab.com/source/build-scripts/core/adapters/browser.adapter.ts.md)
- [core/factories/browser.factory.ts](https://banes-lab.com/source/build-scripts/core/factories/browser.factory.ts.md)

## Linked from

- [core/adapters](https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-adapters.md)
- [core/factories](https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-factories.md)

## Source

```typescript
export const SOCKET_FAILED =
    "browser adapter: the devtools socket failed to open. Check that the browser is still running.";

export const NOT_TEXT_MESSAGE = "browser adapter: the devtools socket sent a message that is not text.";

export const protocolFailed = function protocolFailed(method: string, detail: string): string {
    return `browser adapter: ${method} failed: ${detail}`;
};

export const socketClosed = function socketClosed(method: string): string {
    return `browser adapter: the devtools socket closed while ${method} was pending.`;
};

export const notObjectMessage = function notObjectMessage(data: string): string {
    return `browser adapter: the devtools socket sent a message that is not an object: ${data}`;
};

export const noReply = function noReply(method: string, milliseconds: number): string {
    return `browser adapter: ${method} got no reply within ${String(milliseconds)} ms.`;
};

export const browserStartFailed = function browserStartFailed(binary: string, reason: string): string {
    return `browser factory: ${binary} did not start: ${reason}\n`;
};

export const consoleEcho = function consoleEcho(text: string): string {
    return `  · ${text}\n`;
};
```
