Skip to content

Commit

Permalink
Fix payload names
Browse files Browse the repository at this point in the history
  • Loading branch information
tu55eladd committed Dec 13, 2023
1 parent 6f18d7f commit a295017
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/nyDialogWs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const ticketUrl = `/please/ws-auth-ticket`;
const socketUrl = `ws://${PLEASE_URL}/ws`;

enum EventTypes {
NY_MELDING = 'NY_MELDING'
NY_MELDING = 'NY_DIALOGMELDING_FRA_BRUKER_TIL_NAV'
}

enum ReadyState {
Expand All @@ -25,7 +25,7 @@ let socket: WebSocket | undefined = undefined;
export const listenForNyDialogEvents = (callback: () => void, fnr?: string) => {
// Start with only internal
if (!fnr) return;
const body = { fnr };
const body = { subscriptionKey: fnr };
if (socket === undefined || ![ReadyState.OPEN, ReadyState.CONNECTING].includes(socket.readyState)) {
socket = new WebSocket(socketUrl);
} else {
Expand Down

0 comments on commit a295017

Please sign in to comment.