Soup.WebsocketConnection::message
Description: Reference for signal Soup.WebsocketConnection::message

### Signal

# Soup WebsocketConnection::message

#### Declaration

    void
    message (
      SoupWebsocketConnection* self,
      gint type,
      GBytes* message,
      gpointer user_data
    )

#### Description [src]

Emitted when we receive a message from the peer.

As a convenience, the `message` data will always be `NULL`-terminated, but the NUL byte will not be included in the length count.

Default handler: The default handler is called before the handlers added via `g_signal_connect()`.

#### Parameters

`type`

  Type: `gint`

  The type of message contents.

`message`

  Type: `GBytes`

  The message data.

  The data is owned by the caller of the function.