<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Palanikumar,<br>
    <br>
    It looks like you're passing the <tt><a moz-do-not-send="true"
        href="http://erlang.org/doc/man/erlang.html#start_timer-3">erlang:start_timer/3</a></tt>
    arguments to <tt><a moz-do-not-send="true"
        href="http://erlang.org/doc/man/timer.html#apply_interval-4">timer:apply_interval/4</a></tt>:<br>
    <br>
        <tt>erlang:start_timer(Time, Dest, Msg)</tt><br>
    <br>
    vs<br>
    <br>
        <tt>apply_interval(Time, Module, Function, Arguments)</tt><br>
    <br>
    <tt>erlang:start_timer/3</tt> sends <tt>Msg</tt> to <tt>Dest</tt>
    after <tt>Time</tt> ms; <tt>timer:apply_interval/4</tt> calls <tt>Module:Function(Arguments)</tt>
    every <tt>Time</tt> ms.<br>
    <br>
    So the error message is telling you that the function <tt>timer:apply_interval/3</tt>
    you're trying to call doesn't exist.<br>
    <br>
    HTH,<br>
    Igor<br>
    <br>
    <div class="moz-cite-prefix">On 23/09/2017 10:50, Palanikumar
      Gopalakrishnan wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAN4mP=oAmRS+kdxDXbY_R5ZDSe_eSg9k-GOhxW-ncpvkMPz=zQ@mail.gmail.com">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>Hi Guys,<br>
                    <br>
                  </div>
                               I want  to send  message to the front-end
                  via websocket in particular time interval.<br>
                </div>
                So i use timer module for this purpose.<br>
                 <b>timer:apply_interval(1000, self(), <<"How' you
                  doin'?">>),</b></div>
              <div><b><br>
                </b></div>
              <div><b><br>
                </b></div>
              But it returns the following error<br>
              <br>
              <b>15:18:20.558 [error] CRASH REPORT Process
                <0.570.0> with 0 neighbours crashed with reason:
                call to undefined function timer:apply_interval(6000,
                <0.570.0>, <<"How' you doin'?">>)<br>
                15:18:20.558 [error] Ranch listener my_cowboy_ws_server
                terminated with reason: call to undefined function
                timer:apply_interval(6000, <0.570.0>,
                <<"How' you doin'?">>)<br>
                <br>
                <br>
              </b></div>
            Its there any way to solve this problem. <br>
            <br>
          </div>
          I already tried with <br>
          <br>
          <b>erlang:start_timer(60000, self(), <<"How' you
            doin'?">>)<br>
            <br>
          </b></div>
        Its only send message after particular timer. I didn't found
        method in this module to send message in particular interval.<br>
        <br>
        <br>
        <br>
        <div>
          <div><br>
            <div><br>
              <br>
              <div>
                <div>
                  <div>
                    <div><br>
                      <br>
                      <div>
                        <div>           <br clear="all">
                          <div><br>
                            -- <br>
                            <div class="gmail_signature">
                              <div dir="ltr">
                                <div>
                                  <div dir="ltr">
                                    <div>
                                      <div dir="ltr">
                                        <div>
                                          <div dir="ltr">
                                            <div>
                                              <div><br>
                                              </div>
                                              <div><b>Warm Regards,</b></div>
                                            </div>
                                            <div><br>
                                            </div>
                                            <div><span
                                                style="background-color:rgb(255,255,255)"><span
style="font-size:12.8px"><b>Palanikumar Gopalakrishnan </b></span></span><img
src="https://ssl.gstatic.com/mail/emoji/6/48px/emoji_u270c.png" alt="✌"
                                                style="font-size: small;
                                                margin: 0px 0.2ex;
                                                vertical-align: middle;
                                                height: 24px; width:
                                                24px;"
                                                moz-do-not-send="true"><span
style="background-color:rgb(255,255,255)"><br>
                                              </span></div>
                                            <div><span
                                                style="font-size:12.8px;background-color:rgb(255,255,255)"><b>Developer</b></span><br>
                                            </div>
                                            <div><br>
                                            </div>
                                            <div><br>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
erlang-questions mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>