fix file upload

This commit is contained in:
Peter Maquiran
2024-01-17 15:11:31 +01:00
parent 26526a8d64
commit be60b13d5d
3 changed files with 45 additions and 24 deletions
@@ -11,17 +11,34 @@ export class SocketConnectionMCRService {
constructor() { }
connect() {
// console.log("SocketConnectionMCRService")
var connection = new signalR.HubConnectionBuilder()
.withUrl("https://gdcmapi-dev.dyndns.info/FileHub", {
accessTokenFactory: () => SessionStore.user.Authorization
}).configureLogging(signalR.LogLevel.Information)
.build()
.build();
connection.on("ReceiveMessage", (message) => {
console.log(message)
console.log("ReceiveMessage", message)
})
// connection.start()
// .then(() => {
// console.log("SignalR connection started.");
// })
// .catch((error) => {
// console.error("Error starting SignalR connection:", error);
// });
// connection.onclose((error) => {
// console.log("SignalR connection closed:", error);
// });
}
}