Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. I have used signalr 2.4.0 library for display the real time data.I have invoked one method from server and then listener call automatically and send ticket count to me.It's work on chrome.safari and Mozilla but It is not working on IE11. On IE11 listener not call and we are not getting the real time ticket count.
  2.  
  3. invoked the method
  4. signalRInit(eventId, alternateKey) {
  5. try {
  6. const hub = this.testService.getEventRegHub();
  7. hub.invoke('testEvent', Key, eventId);
  8. } catch (err) {
  9. console.log("error");
  10. }
  11. }
  12.  
  13. Call listener for getting real time data:this is not work on IE11 but work on other browser
  14.  
  15. const hub = this.testService.getEventRegHub();
  16. hub.on('testListner', (abc, TixAvailableToPublic) => {
  17. if (this.ref == abc) {
  18. this.remainingEventTickets = EventTixAvailableToPublic;
  19. this.isOrAre = this.remainingEventTickets > 1 ? 'are' 'is';
  20. this.ticketWordForRemainingTickets = this.remainingEventTickets > 1 ? 'tickets' 'ticket';
  21. }
  22. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement