---
title: messageInvalid
framework: webkit
role: symbol
role_heading: Type Property
path: webkit/wkwebextension/messageport/error/messageinvalid
---

# messageInvalid

Indicates that the message is invalid.

## Declaration

```swift
static var messageInvalid: WKWebExtension.MessagePort.Error.Code { get }
```

## Discussion

Discussion The message must be an object that is JSON-serializable.
