Jump to content
WAPT Forum
Sign in to follow this  
PeterB

Server push inside session using WAPT

Recommended Posts

My application uses server push to notify the client of changes, how can I integrate this in WAPT?

 

This is how it works:

During login, the server assigns a session id to each client -> I have been able to extract this id into a variable

Then the client sends a push request using the session id -> Also no problem using the variable for sessions id

-

What now happens is, that the server either sends push data in 200OK during a 120 seconds timeframe, or answers 120 seconds after the client request with a 200OK plus timeout information.

During the 120 sec timeframe, the client of course should send it's regular requests to the server, so the entire server push mechanism must be running in parallel to the regular user session.

After an answer from the server, the client sends a fresh push request, to keep the server push channel open. This goes on, until the client logs out.

 

Is it possible to replicate this in WAPT?

 

 

Share this post


Link to post
Share on other sites

You can convert your push request to streaming request. Just select it and click on Convert To Streaming in right click menu.

Streaming request will be executed in parallel.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...