Frog.castAction Response
The response returned from the .castAction handler.
import { Frog } from 'frog'
 
export const app = new Frog({ title: 'Frog Frame' })
 
app.castAction('/', (c) => {
    return c.res({
      // ...
    })
  },
  {
    name: 'My Action',
    icon: 'log'
  }
)message
- Type: string
Message to show in the toast in the App that sent the action.
import { Button, Frog } from 'frog'
 
export const app = new Frog({ title: 'Frog Frame' })
 
app.castAction('/', (c) => {
    return c.res({
      message: 'Action Succeeded!',
      type: 'message'
    })
  },
  {
    name: 'My Action',
    icon: 'log'
  }
)link
- Type: string | undefined
An optional URL. Must be http:// or https:// protocol. If present, clients must display the message as an external link to this URL.
import { Button, Frog } from 'frog'
 
export const app = new Frog({ title: 'Frog Frame' })
 
app.castAction('/', (c) => {
    return c.res({
      message: 'Action Succeeded!',
      link: 'https://frog.fm',
      type: 'message',
    })
  },
  {
    name: 'My Action',
    icon: 'log'
  }
)