WebSocket onMessage

23 views
Skip to first unread message

Mohan Radhakrishnan

unread,
Mar 8, 2014, 11:09:36 PM3/8/14
to play-fr...@googlegroups.com
Hi,
      Should the onMessage event handler be called whenever I publish using 'EventPublisher.ref.tell' ? The socket is open.
It isn't called. What else is the link between the listening socket and the publisher ?

connectWebSocket = () ->

  websocket = new WebSocket $("#url").val()

  console.log("connectWebSocket")

  websocket.onmessage = (evt) ->

     json = JSON.parse(evt.data)


Thanks,
Mohan

Mohan Radhakrishnan

unread,
Mar 8, 2014, 11:31:37 PM3/8/14
to play-fr...@googlegroups.com
I withdraw the question. Problem with the event type published.

Mohan
Reply all
Reply to author
Forward
0 new messages