Skip to main content

All Questions

Tagged with
580 questions with no upvoted or accepted answers
7 votes
0 answers
1k views

How to mock websocket messages in Cypress

In my team we are using websockets to push some notifications that then update the state of the app. I tried to test changes in UI, but real data is to random and I have to mock it. Unfortunately, as ...
Zenek Wiaderko's user avatar
7 votes
1 answer
3k views

Expected ASGI message 'websocket.accept' or 'websocket.close', but got 'http.response.start'

I want to connect websockets, but I get an error at startup. uvicorn app:app --reload --ws websockets requirements OS: Linux Ubuntu 20.04 LTS Python 3.8.6 Browser: Chrome 88.0.4324.182 fastapi==0....
Dima's user avatar
  • 110
6 votes
1 answer
693 views

websocket.js causing unexpected refresh of React app

I have a React web application that allows Image uploads. After performing a fetch POST request for multiple images (in this case 6) to my API, the browser refreshes itself and reloads the current ...
Vince's user avatar
  • 691
5 votes
0 answers
1k views

Trouble configuring NextAuth and tRPC's Websockets when deploying

I have built an app with tRPCv10 and NextAuth. As my app requires realtime updates, I have followed tRPC's docs on implementing subscriptions with websockets. tRPC docs on subscription tRPC example ...
sweic's user avatar
  • 83
5 votes
0 answers
19k views

Some cookies are misusing the recommended “sameSite“ attribute

I'm building a react application that uses atmosphere library to listen to a SpringBoot websocket, when the client tries to connect to the server, it throws an error in the console saying Some cookies ...
Arar's user avatar
  • 2,066
5 votes
0 answers
244 views

Redux blocking on high volume websocket events

I have a requirement in the app im currently building to fetch all data via a websocket, the issue is that there is no functionality to fetch all data via the websocket, and i have to fetch individual ...
Jack Wilkinson's user avatar
5 votes
0 answers
595 views

Socket.io with cloudflare cross-origin error 525

I have an app in which we are trying to implement notifications with socket.io on node and react. Here is the node app: const app = require('express')(); const http = require('http').Server(app); ...
Pavan Kumar's user avatar
4 votes
1 answer
1k views

Can't establish wss connection [React + ASP.NET Core, SignalR + nginx]

I have React app that talks to Asp.Net core API. Both of them are deployed on Docker on my VM. Nginx is installed and configured to resolve domain names for app (thesis.uno - for react app, api.thesis....
urmat abdykerimov's user avatar
4 votes
0 answers
666 views

How to connecting signalR to react native

I trying to connect with SignalR. After request, does not return response. LIBRARY: react-native-signalr import React, { Component } from 'react'; import { StyleSheet, Text, View, } from '...
Oleh Zankiv's user avatar
4 votes
0 answers
2k views

How to solve Apollo subscriptions "Error during WebSocket handshake: Unexpected response code: 400"

I have a legacy application working with React and subscribing to a GraphQL backend. Today, I upgraded all my packages especially thoses (I suppopse that they are the origin of my problem but I'm not ...
Ala Eddine JEBALI's user avatar
4 votes
0 answers
1k views

React Native local push Notification like Facebook not by using FCM

I am new to React Native development, I am developing a Chat application by using WebSocket. I can send and receive the messages, But I need to show a local notification when the message comes from ...
Poonkodi's user avatar
  • 146
3 votes
2 answers
5k views

How to render components in NextJS 13 only on client

I'm working on a project at the moment which requires my components to react to frequently changing conditions on the client side, however NextJS 13 seems to be forcing server-side rendering as far as ...
Marcus Horne's user avatar
3 votes
1 answer
62 views

When I import socket variable from another file, the websocket does not work in JavaScript

Situation1. const socket = new WebSocket("ws://localhost:3000/socket"); setTimeout(() => { console.log("socket: ", socket); }, 3000); It's work fine. readyState: 1 ...
logic13's user avatar
  • 79
3 votes
0 answers
182 views

ReactJS + Websocket + Context = Max update depth exceeded

I'm having a ReactJS "Warning: Maximum update depth exceeded" error occuring in my WebsocketContext component and I'm not sure why and hoping someone might be able to shed some light. I'll ...
iSaWcH's user avatar
  • 53
3 votes
0 answers
329 views

Socket.IO Error 400 when connecting to server, or never connects

I'm working on chat app, I have Android version made in Flutter, where Socket.IO works fine. Now I'm making web app of this chat app. But when the app tries to connect to server, the error is thrown: ...
Boris Grigorov's user avatar

15 30 50 per page
1
2 3 4 5
39