Website
Community
User Documentation
Free Trial
Search…
Rocket.Chat Developer
Quick Start
Choosing a Deployment Host
Setting up your Development Environment
Rocket.Chat
Rocket Chat Environment Setup
Repository Structure
Deeplink
Two Factor Authentication
Embedded Layout
White Labelling Rocket.Chat
Iframe Integration
Configuring iframe auth
Adding a Rocket.Chat Chat Room to your Web App
Iframe Events
Iframe integration: Sending commands
Contribute to Rocket.Chat
Mobile App
Mobile App Environment Setup
Testing your Mobile App
Mobile App White Labelling
Mobile App FAQs
Desktop App
Desktop App Environment Setup
Developing your Desktop App
Debugging your Desktop App
Desktop App White Labelling
Omnichannel
Omnichannel Environment Setup
Developing Omnichannel Apps
Livechat Widget Development and Customization
Apps Engine
Rocket.Chat App
Rocket.Chat Apps Engine
Omnichannel FAQs
Getting Started
Adding Features
Testing your App
Sample App Snippets
Slack Compatibility
App Submission to the Marketplace
Apps-Engine API Reference
Bots
Bots Development Environment Setup
Bots Architecture
Creating Your Own Bot From Scratch
Bots FAQs
Reference
Database Schema
API
Fuselage
Contributing
Powered By
GitBook
Iframe integration: Sending commands
Available commands
Command
Params
Description
go
-
path
string
Change url
login-with-token
-
token
string
Allow login with token
call-custom-oauth-login
-
service
string
Allow login via oauth methods
set-user-status
-
status
string
Set the status of the user
logout
Log the user out of their current session
Example
1
document
.
querySelector
(
'iframe'
).
contentWindow
.
postMessage
({
2
externalCommand
:
'go'
,
3
path
:
'/admin/General'
4
},
'*'
)
Copied!
Previous
Iframe Events
Next - Rocket.Chat
Contribute to Rocket.Chat
Last modified
1yr ago
Export as PDF
Copy link
Edit on GitHub
Contents
Available commands
Example