hangup

View as MarkdownOpen in Claude

End the call immediately.

This is a terminal action. Any actions chained after hangup() may not execute. Always place hangup() last in the chain.

Parameters

None.

Returns

FunctionResultthis, for chaining.

Example

1import { FunctionResult } from '@signalwire/sdk';
2
3const result = new FunctionResult('Goodbye!')
4 .hangup();