EspoCRM and WebSockets

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

    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
    Member
    • Mar 2014
    • 8469

    #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'.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...