Now with multi connections
This commit is contained in:
@@ -40,7 +40,9 @@ export const SocketProvider: FC = (props) => {
|
||||
process.env.NEXT_PUBLIC_SERVER_URL || "http://localhost:5000";
|
||||
|
||||
const connection = new HubConnectionBuilder()
|
||||
.withUrl(`${serverUrl}/hubs/todo`)
|
||||
.withUrl(`${serverUrl}/hubs/todo`, {
|
||||
withCredentials: true
|
||||
})
|
||||
.withAutomaticReconnect()
|
||||
.configureLogging(LogLevel.Information)
|
||||
.build();
|
||||
|
Reference in New Issue
Block a user