Comments, appointments adjustments, fixed some issues
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import { Client } from "@stomp/stompjs";
|
||||
|
||||
//Backend URL for the WebSocket connection, empty string means same origin
|
||||
const BACKEND_URL = process.env.NEXT_PUBLIC_BACKEND_URL || "";
|
||||
|
||||
//Creates a STOMP client that connects to the chat WebSocket with the user's token
|
||||
export function createStompClient(token) {
|
||||
return new Client({
|
||||
webSocketFactory: () => {
|
||||
|
||||
Reference in New Issue
Block a user