# createWSMessageEvent

**Kind:** Function

**Source:** [`src/helper/websocket/index.ts`](https://github.com/honojs/hono/blob/main/src/helper/websocket/index.ts#L95)

**Part of:** [Helper](subsystem-src-helper)

## Signature

```ts
function createWSMessageEvent(source: WSMessageReceive): MessageEvent<WSMessageReceive>
```

## Parameters

| Name | Type |
|---|---|
| `source` | `WSMessageReceive` |

**Returns:** `MessageEvent<WSMessageReceive>`

## Used by

1 reference from 1 file. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

### Imported by (1)

- `BunServerWebSocket` — `src/adapter/bun/websocket.ts`:8
