File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
ponysdk/src/main/java/com/ponysdk/core/server/application Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -488,10 +488,15 @@ public PObject getObject(final int objectID) {
488
488
* the stream handler
489
489
*/
490
490
public void stackStreamRequest (final StreamHandler streamListener ) {
491
+ stackStreamRequest (streamListener , PWindow .getMain ());
492
+ }
493
+
494
+ public void stackStreamRequest (final StreamHandler streamListener , final PWindow window ) {
491
495
final int streamRequestID = nextStreamRequestID ();
492
496
493
497
final ModelWriter writer = Txn .get ().getWriter ();
494
498
writer .beginObject ();
499
+ if (!PWindow .isMain (window )) writer .write (ServerToClientModel .WINDOW_ID , window .getID ());
495
500
writer .write (ServerToClientModel .TYPE_ADD_HANDLER , -1 );
496
501
writer .write (ServerToClientModel .HANDLER_TYPE , HandlerModel .HANDLER_STREAM_REQUEST .getValue ());
497
502
writer .write (ServerToClientModel .STREAM_REQUEST_ID , streamRequestID );
You can’t perform that action at this time.
0 commit comments