Skip to main content

All Questions

Tagged with
0 votes
2 answers
745 views

Handling WebSocket connections in Jasmine tests

I have my test.login.js: it('calls login when there\'s a username present', () => { React.findDOMNode(LoginElement.refs.username).value = 'foo'; TestUtils.Simulate.submit(form); expect(...
benhowdle89's user avatar
  • 37.3k
3 votes
1 answer
2k views

Flux and WebSockets

I'm using Flux and WebSocket in my Reactjs application and during implementation I've encountered some problems. Questions: Assuming I have a set of a set of actioncreators and a store for managing ...
user avatar
0 votes
2 answers
1k views

Reactjs working with sockets: rerender when socket receive a message

I'm try to implement something like chat application with usage of websockets. But when websocket got a message, no components are rerendering. Please review my code # The main ancestor, chat ...
Alex Antonov's user avatar
  • 14.9k
5 votes
1 answer
2k views

Where do sockets fit into the Flux unidirectional data flow?

Where do sockets fit into the Flux unidirectional data flow? I have read 2 schools of thought for where remote data should enter the Flux unidirectional data flow. The way I have seen remote data for ...
evkline's user avatar
  • 1,491
3 votes
1 answer
267 views

How do I continually update my ReactJS client from my Ruby REST/CRUD API without polling?

BACKGROUND I'm building a simple ReactJS application as a proof of concept; with Flux architecture and all. I have a Ruby and MongoDB data layer API built using Sinatra and Mongoid. A front-end ...
JeanLescure's user avatar
  • 1,119
7 votes
2 answers
6k views

React server-side rendering without polling for changes

I'm in the process of experimenting with transitioning an existing web app from knockout to react js. As it stands the application establishes a websocket connection to the server and receives update ...
ioseph's user avatar
  • 1,907
1 vote
1 answer
539 views

Reactjs don't duplicate my message after update state

I was following the example this blog and the question arose me after implementing https://github.com/DanialK/ReactJS-Realtime-Chat Summarizing, before send a message via websocket the state of ...
patricK's user avatar
  • 1,085

15 30 50 per page
1
66 67 68 69
70