EspoCRM and WebSockets

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • blueprint
    Active Community Member
    • Jan 2019
    • 223

    #1

    EspoCRM and WebSockets

    Following my previous post about some kind of Instant Chat feature, are there any developer guides on how to use WebSockets within EspoCRM as part of a custom feature?
  • yuri
    EspoCRM product developer
    • Mar 2014
    • 9642

    #2
    I recommend to search through code by keyword 'websocket'. There's no guide how to utilize websocket for custom needs.

    1. You will need to define your custom 'topic' in metadata.
    2. Need to submit to the websocket with your 'topic' like https://github.com/espocrm/espocrm/b...Submit.php#L50
    3. Subscribe in frontend to your 'topic'.

    Comment

    Working...