Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/js sse on non supporting browser #259

Merged
merged 11 commits into from
Nov 7, 2017

Conversation

ibelar
Copy link
Contributor

@ibelar ibelar commented Nov 4, 2017

Fix jsSse to run callback function on non supporting browser.

On non supporting browser, like IE, the set callback function is never run.
Using this fix, the atkServerEvent.js plugin will fallback with using atkAjaxec.js when this occur, in order for the callback function define in set to be able to run and at least complete.

@romaninsh
Copy link
Member

Should this be merged aftter #258 ?

ibelar and others added 3 commits November 5, 2017 10:19
Better uri assignation;
Switch from atkAjaxec to atkReloadView for GET support in reloadView
@romaninsh
Copy link
Member

@DarkSide666 you'll have to test / review this because I don't have IE.

@codecov
Copy link

codecov bot commented Nov 6, 2017

Codecov Report

Merging #259 into develop will increase coverage by 0.77%.
The diff coverage is 20%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop     #259      +/-   ##
=============================================
+ Coverage      71.34%   72.12%   +0.77%     
- Complexity      1110     1111       +1     
=============================================
  Files             62       62              
  Lines           2729     2730       +1     
=============================================
+ Hits            1947     1969      +22     
+ Misses           782      761      -21
Impacted Files Coverage Δ Complexity Δ
src/jsSSE.php 38.59% <20%> (+38.59%) 19 <0> (+1) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f82df87...8efbdca. Read the comment docs.

@romaninsh
Copy link
Member

@ibelar i had to fix a little, it was broken. can you check if it still OK as a fix?

@romaninsh
Copy link
Member

OK to ignore codecov/patch coverage, because zombiejs cant trigger SSE.

serverEvent.js plugin:
- change how url param is pass to server.
- add option to display a loader on the element generating the event.

jsSSE.php
- change how trigger is meet via $_Get[‘event’] param.
@romaninsh romaninsh merged commit 1c9dc8a into develop Nov 7, 2017
@romaninsh romaninsh deleted the fix/jsSse-on-non-supporting-browser branch November 7, 2017 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants