Announcement

Collapse
No announcement yet.

How to register a new websocket event?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to register a new websocket event?

    Hi everyone,

    Please I would like to know what is the process to register a new websocket event as I cant find see any documentation online.
    I have setup the websocket service on the server already and enabled in the CRM and it works perfectly.
    I have created a custom service that returns data from a record that often change in background.
    Actually I use Ajax to call that custom service every minute but I would now like to instead register a websocket event that would push the new data when an update happen.
    Please can you help?
    Thanks in advance

  • #2
    Originally posted by boCyrill View Post
    Hi everyone,
    Please I would like to know what is the process to register a new websocket event as I cant find see any documentation online.
    I have setup the websocket service on the server already and enabled in the CRM and it works perfectly.
    I have created a custom service that returns data from a record that often change in background.
    Actually I use Ajax to call that custom service every minute but I would now like to instead register a websocket event that would push the new data when an update happen.
    Please can you help?
    Thanks in advance
    Hi boCyrill‚Äč were you able to figure out how to register your websocket if so could you please share your experience?

    Comment


    • #3
      In metadata app > webSocket: https://docs.espocrm.com/development...pp-web-socket/

      Use this service class to submit to a websocket in the backend: https://github.com/espocrm/espocrm/b...Submission.php


      Comment

      Working...
      X