File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Samples/AspDotCore/WebApp/WebApp
src/js/components/logic/lib Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public void ConfigureServices(IServiceCollection services)
3535 . AllowAnyMethod ( )
3636 . AllowAnyHeader ( )
3737 . AllowCredentials ( )
38- . WithOrigins ( "http://localhost:8080" ) ;
38+ . WithOrigins ( "http://localhost:8080" , "https://gourav-d.github.io" ) ;
3939 } ) ) ;
4040
4141 //services.AddAuthentication()
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ class SignalRApp {
3636 // const li = document.createElement("li");
3737 // li.textContent = `Connection lost due to error "${error}". Reconnecting.`;
3838 // document.getElementById("messagesList").appendChild(li);
39+ AppEvents . emit ( 'Logger' , `Connection lost due to error "${ error } ". Reconnecting.` ) ;
3940 console . log ( 'On Reconnecting...' ) ;
4041 } ) ;
4142
@@ -44,6 +45,7 @@ class SignalRApp {
4445 // const li = document.createElement("li");
4546 // li.textContent = `Connection reestablished. Connected.`;
4647 // document.getElementById("messagesList").appendChild(li);
48+ AppEvents . emit ( 'Logger' , `Connection reestablished. Connected` ) ;
4749 console . log ( 'On Reconnected...' ) ;
4850 } ) ;
4951
You can’t perform that action at this time.
0 commit comments