sockjs-client for Taro
npm:
npm install taro-sockjs-client
yarn:
yarn add taro-sockjs-client
import { Stomp } from '@stomp/stompjs'
import SockJS from 'taro-sockjs-client'
const sock = new SockJS(url)
const client = Stomp.over(sock)
client.connect({}, onConnected, onError)