WebSocket Subscriptions
Use WebSocket subscription to get real-time data from Orangepill
Listen for events on your Realm so your integration can automatically trigger reactions. Orangepill uses Websocket to notify your application when an event occures in your Realm. WebSockets are particularly useful for asynchronous events like when a new account is created, new transaction is processed or when incoming deposits are receieved.
Events
Event | Description |
---|---|
| New user is successfully created. |
| User is updated. |
| User is deleted. All related content is cascade deleted: identities, virtual currencies, accounts, transactions, deposits, withdrawals. |
| New identity is successfully created. |
| Identity is updated. |
| Identity is deleted. |
| Two-way synchronization of persons started. |
| Two-way synchronization succesfully finished. |
| Person profile is created. |
| Person profile is updated. |
| Person profile is deleted. |
| Person is assigned to Identity. |
| Person is unassigned from Identity. |
| Company profile is created. |
| Company profile is updated. |
| Company profile is deleted. |
| Message is sent to CHANNEL. CHANNEL is sms, whatsapp, html and any other enabled. |
| Message failed to CHANNEL. CHANNEL is sms, whatsapp, html and any other enabled. |
| New account is being created. |
| Account is successfully created. |
| Account creation has failed. |
| Account has been updated. |
| Incoming balance. |
| Outgoing balance. |
| New transaction is created and being processed. |
| Transaction is updated. |
| Transaction is successfully processed. |
| Transaction processing failed. |
| Incoming deposit detected. |
| Incoming deposit received. |
| Deposit is stored and processing. |
| Gas is withdrawn for ERC20, BEP20, TRC20 deposit processing. |
| Deposit is successfully processed. |
| Deposit processing failed. |
| New withdrawal is created and being processed. |
| Withdrawal is successfully processed. |
| Withdrawal processing failed. |
| Virtual currency is successfully created. |
| Virtual currency failed creating. |
| New Virtual currency supply issued. |
| Virtual currency supply destroyed. |
| Alias successfully created. |
| Alias successfully updated. |
| Alias successfully deleted. |
apps. | Transaction was successfully forwarded. |
apps. | Transaction forwarding failed. |
| Apps.Payment is created and pending. |
| Apps.Payment status change. |
| Apps.Payment is being processed. |
| Apps.Payment is successfully processed. |
| Apps.Payment processing failed. |
| Apps.Deposit is created and pending. |
| Apps.Deposit is being processed. |
| Apps.Deposit is succesfully processed. |
| Apps.Deposit processing failed. |
Events marked with * supported with Infobip extension enabled.
Event data
Each notification will include name of the event and id of the entity affected by event. If details of event are of your interest, use information from event data
to retrieve entity details.
Connect to WebSocket notification server using URL wss://stream.orangepill.cloud
.
To subscribe for notification events use your Realm Key in message.
You can unsubscribe from receiving notification events using similar message.
In successful response to subscribe and unsubscribe events you will receive object.
If subscribe is not successful you will receive info and error objects.
Subscribe event response.
Unsubscribe event response.
Example using JavaScript
Use https://api.orangepill.cloud for live example of Event Stream Explorer.
Last updated