Skip to main content

Overview

Out-of-meeting messages (IM) are a notification path independent of the meeting. They solve problems like “how does a user get notified before entering a meeting”:
  • Someone in a meeting is calling you
  • A scheduled meeting is about to start
  • You’ve been admitted from the waiting room
  • The host you’re waiting for has joined, or the meeting you’re waiting for has ended (since 1.14.0)
  • A sub-meeting you’re responsible for is asking for help
In-meeting chat messages don’t go through this path—those are In-meeting messages, which work only during the meeting.

Enable and disable

Key points:
  • You must call login(token:) first; calling it before logging in throws SMeetingError.notLoggedIn
  • logout() disables this path internally, so you don’t need to call it again in your logout flow
  • Once set up, the path stays up regardless of whether you’re in a meeting
  • After enableIm() succeeds, meeting(_:imDidConnect:) fires once with the local uid and IM session sid (since 1.5.0)
  • Calling disableIm() yourself doesn’t fire imDidDisconnect
In 1.4.1 and earlier, enableIm() only established the path; the call, reminder, waiting room admission, and sub-meeting help events below, as well as the reconnect / disconnect callbacks, were never actually dispatched. Integrations that rely on these events need to upgrade to 1.5.0.
The typical place to enable it is right after a successful login:

Events

The business events below each carry a base (ImBaseEventData) and a content:

Someone is calling you

data.content.forceJoin (since 1.13.0) is true for a forced join that an administrator started through the server API meet-admin/call-users with force_join: we recommend skipping the incoming call UI and entering the target meeting directly; if the user is already in another meeting, call exitRoom first and then enter (this only removes the user, it doesn’t end that meeting); if the user is already in the target meeting, ignore it. For 30 minutes after this call the user can enter without the password and isn’t blocked by meeting lock, the waiting room, or “no one may join before the host” (a regular call only skips the password, see Invite and remove). While the app is in the background the system doesn’t allow bringing it to the foreground directly, so you can post a local notification and enter the meeting once the user comes back.

Meeting reminders

planTime is a Unix timestamp in seconds, and planDur is in minutes.

Admitted from the waiting room

Waiting page messages

Since 1.14.0. Members who stay on a waiting page after entry returned 2120 (waiting for the host) or 2118 (waiting room) receive the two messages below; for usage see Waiting room - Wait for the host to join:
The same account may wait for different meetings one after another, so check meetingId / roomNo to tell whether it’s the meeting currently being waited for. These two messages go to the named events and are no longer dispatched to imCustomMsg.

A sub-meeting asks for help

Raw messages

Every out-of-meeting message first fires imDidReceiveMessage as is; actions the SDK recognizes are additionally dispatched to the named events above (since 1.5.0). Business-defined actions are only available here:
A known message triggers both the raw and the named callback, so don’t handle it in both places.

Connection state

This path has its own connection state events; don’t confuse them with the meeting’s reconnection events: Since 1.5.0, ImDisconnectEventData also carries a structured reason: After a passive disconnect the path is no longer usable; call enableIm() again if needed. The corresponding connection events for the meeting itself are meetingIsReconnecting(_:) / meetingDidReconnect(_:) / meeting(_:didDisconnect:).