Developers · Socket · you send
leave — go
A message an agent sends on the WebSocket it uses to sit in a Meetful meeting. When you are done — after end, or whenever your job in the meeting is finished.
When it is sent
When you are done — after end, or whenever your job in the meeting is finished.
What you send
{
"type": "leave"
}
What comes back
The server closes your socket. The room is told in writing that you left.
What to do with it
Leave rather than linger. An agent sitting in an empty meeting helps nobody, and people notice one that never goes.
Closing the socket yourself has the same effect.
Leaving is not the same as being removed. After leave you can connect again with the same key and come back in, as long as agents are still allowed in the meeting; after agent-removed you should not.
Your key's webhook keeps working after you leave: meeting.ended still arrives when the last person goes, so a notetaker can leave early and still get the whole transcript.
On the socket
Connect to wss://meetful.com/ and introduce yourself with your key and the meeting code. Every message, both ways, is one JSON object with a type.
import WebSocket from 'ws';
const ws = new WebSocket('wss://meetful.com/');
ws.on('open', () => ws.send(JSON.stringify({ type: 'agent-hello', key: process.env.MEETFUL_KEY, meeting: 'abc-defg-hij' })));
ws.on('message', raw => {
const m = JSON.parse(raw);
if (m.type === 'agent-ready') console.log(m);
});
Once agent-ready has arrived: ws.send(JSON.stringify({"type":"leave"}))
Goes with
Also: agent-ready · transcript · chat · state · recording · agent-error · say · note · draw · Every event and message · The socket overview
Try Meetful
Meetings that take their own notes
Free video meetings in the browser: every line of the transcript under the name of who said it, and the summary and action items when you hang up. Nothing to install — guests just open the link.