react-stompjs-client
v1.0.3
Published
A React Websocket Component
Downloads
5
Maintainers
Readme
react-stompjs-client
Lightweight websocket client for react SPAs based on typescript, sockJS & stompJS
Usage
import * as React from 'react';
import WebSocketClient from 'react-stompjs-client';
export const WebSocketWrapper = (props) => (
<WebSocketClient {...props}>
<div>Hello World</div>
</WebSocketClient>
);