Skip to content

Commit

Permalink
fix: ws
Browse files Browse the repository at this point in the history
  • Loading branch information
hai-ko committed Oct 24, 2023
1 parent 3603bde commit 675cec2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ http {
}

location /socket.io {
proxy_pass http://backend:8081/socket.io/;
proxy_pass http://backend:8081/socket.io;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
Expand Down
5 changes: 4 additions & 1 deletion packages/messenger-widget/src/components/DM3/DM3.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ function DM3(props: Dm3Props) {
throw Error('Could not get account profile');
}

const socket = socketIOClient(deliveryServiceUrl, {
console.log('deliveryServiceUrl')

Check failure on line 86 in packages/messenger-widget/src/components/DM3/DM3.tsx

View workflow job for this annotation

GitHub Actions / code-quality

Unexpected console statement
console.log(deliveryServiceUrl.replace('api/', ''))

Check failure on line 87 in packages/messenger-widget/src/components/DM3/DM3.tsx

View workflow job for this annotation

GitHub Actions / code-quality

Unexpected console statement

const socket = socketIOClient(deliveryServiceUrl.replace('api/', ''), {
autoConnect: false,
transports: ['websocket'],
});
Expand Down

0 comments on commit 675cec2

Please sign in to comment.