<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><b></b><div><br><div><br><br><div><b></b><div><div><b></b><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;"><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>