# Events

Use to further customize your chat.

# message_sent

Fires when a message is sent.

<script>
smartsupp('on', 'message_sent', function(message) {
  console.log('sent message:', message);
});
</script>

# message_received

Fires when a message is received.

<script>
smartsupp('on', 'message_received', function(message) {
  console.log('received message:', message);
});
</script>

# messenger_close

Fires when a chatbox messenger is closed.

<script>
smartsupp('on', 'messenger_close', function(message) {
  console.log('messenger close:', message);
});
</script>