Results 1 to 5 of 5

Hybrid View

  1. #1
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Hi,

    so let's modify the buysell.js file of the PortfolioDemo (source code available in the Lightstreamer distribution).

    First of all let's implement the MessageListener interface:

    our simple implementation will simply alert us of the result of the request.

    Then let's use it in the submitForm method.
    First we need a simple counter to identify the messages, so declare a "next" var before the submitForm method:



    then create a MyMessageListener instance per each message and pass it to the sendMessage method



    Obviously you'll implement the MessageListener interface to fit your needs
    That's all.

    HTH

  2. #2
    Member
    Join Date
    Apr 2010
    Location
    San Francisco
    Posts
    16
    Thanks - that's exactly what I needed.

 

 

Similar Threads

  1. sendMessage in .net
    By michaelvb in forum Adapter SDKs
    Replies: 2
    Last Post: May 21st, 2008, 01:21 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 10:15 AM.