lahsivjar / React Stomp
Licence: mit
React websocket component for STOMP protocol over SockJs
Stars: ✭ 110
Programming Languages
javascript
184084 projects - #8 most used programming language
Labels
Projects that are alternatives of or similar to React Stomp
Gun
HTTP/1.1, HTTP/2 and Websocket client for Erlang/OTP.
Stars: ✭ 710 (+545.45%)
Mutual labels: websocket-client
Sockpuppet
Having fun with WebSockets, Python, Golang and nytimes.com
Stars: ✭ 32 (-70.91%)
Mutual labels: websocket-client
Sketchpad
Sketchpad is fully customisable collaborative whiteboard plugin written in pure JavaScript.
Stars: ✭ 85 (-22.73%)
Mutual labels: websocket-client
Sylar
C++高性能分布式服务器框架,webserver,websocket server,自定义tcp_server(包含日志模块,配置模块,线程模块,协程模块,协程调度模块,io协程调度模块,hook模块,socket模块,bytearray序列化,http模块,TcpServer模块,Websocket模块,Https模块等, Smtp邮件模块, MySQL, SQLite3, ORM,Redis,Zookeeper)
Stars: ✭ 895 (+713.64%)
Mutual labels: websocket-client
Stl.fusion
Get real-time UI updates in Blazor apps and 10-1000x faster API responses with a novel approach to distributed reactive computing. Fusion brings computed observables and automatic dependency tracking from Knockout.js/MobX/Vue to the next level by enabling a single dependency graph span multiple servers and clients, including Blazor apps running in browser.
Stars: ✭ 858 (+680%)
Mutual labels: websocket-client
Jiny
Lightweight, modern, simple JVM web framework for rapid development in the API era
Stars: ✭ 40 (-63.64%)
Mutual labels: websocket-client
Mist
A distributed, tag-based pub-sub service for modern web applications and container-driven cloud.
Stars: ✭ 634 (+476.36%)
Mutual labels: websocket-client
Python Bittrex Websocket
Python websocket for Bittrex (non async).
Stars: ✭ 104 (-5.45%)
Mutual labels: websocket-client
Websocketphpclient
🗿 [DEPRECATED] PHP WAMPv1 compliant websocket client
Stars: ✭ 31 (-71.82%)
Mutual labels: websocket-client
Deno Websocket
🦕 A simple WebSocket library like ws of node.js library for deno
Stars: ✭ 74 (-32.73%)
Mutual labels: websocket-client
Docker Ws Client
docker websocket client for remote attch
Stars: ✭ 9 (-91.82%)
Mutual labels: websocket-client
Starscream
Websockets in swift for iOS and OSX
Stars: ✭ 7,105 (+6359.09%)
Mutual labels: websocket-client
Ulfius
Web Framework to build REST APIs, Webservices or any HTTP endpoint in C language. Can stream large amount of data, integrate JSON data with Jansson, and create websocket services
Stars: ✭ 666 (+505.45%)
Mutual labels: websocket-client
Achilles
A Simple Retrofit Inspired Android Websocket Client (In Development)
Stars: ✭ 37 (-66.36%)
Mutual labels: websocket-client
Coinbasepro Python
The unofficial Python client for the Coinbase Pro API
Stars: ✭ 1,386 (+1160%)
Mutual labels: websocket-client
Recws
Reconnecting WebSocket is a websocket client based on gorilla/websocket that will automatically reconnect if the connection is dropped and keeps the connection alive - thread safe!
Stars: ✭ 60 (-45.45%)
Mutual labels: websocket-client
react-stomp
React component for SockJS-client with STOMP messaging protocol.
Installation
npm install --save react-stomp
Example Usage
import React from 'react';
import SockJsClient from 'react-stomp';
class SampleComponent extends React.Component {
constructor(props) {
super(props);
}
sendMessage = (msg) => {
this.clientRef.sendMessage('/topics/all', msg);
}
render() {
return (
<div>
<SockJsClient url='http://localhost:8080/ws' topics={['/topics/all']}
onMessage={(msg) => { console.log(msg); }}
ref={ (client) => { this.clientRef = client }} />
</div>
);
}
}
Demonstration
https://react-websocket.herokuapp.com/index
A working implementation using Spring Boot and react-talk can be found at https://github.com/lahsivjar/spring-websocket-template/tree/master/with-sockjs
API Docs
Auto generated docs available here.
Issues
Report any issues or bugs to https://github.com/lahsivjar/react-stomp/issues
Changelog
5.1.0
- Fix subscribeHeaders corruption when subscribing to multiple topics
- Minor upgrades:
- sinon
- nyc
- acorn
- websocket-extensions
- handlebars
- lodash
- sockjs-client
- highlightjs
- ini
5.0.0
- Update react from 16.6.3 to 16.13.0
- Fix deprecation of
componentWillReceiveProps
4.3.0
- Update handlebar dependency
4.2.0
- Add
onConnectFailure
callback - Upgrade babel to babel7
4.1.1
- [BugFix #96] Remove array slice of subscribe headers
4.1.0
- Update react from 16.5.0 to 16.6.3
- Update react-dom from 16.5.0 to 16.6.3
- [PR #93] Use STOMP message frame to find correct topic
4.0.0
- Improve test coverage
- [BugFix #61] Add support for receiving plain text messages
- [BugFix #70] Fix reconnect loop under certain circumstances even after disconnect is called
License
This project is licensed under the MIT License - see the LICENSE file for details
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].