stomp-js / stompjs

Javascript and Typescript Stomp client for Web browsers and node.js apps
Apache License 2.0
777 stars 81 forks source link

How to use stompjs with vue2? #575

Open cn-ty opened 1 year ago

cn-ty commented 1 year ago

My project is vue2. When I import { Client } from '@stomp/stompjs' , console error.

 error  in ./node_modules/@stomp/stompjs/bundles/stomp.umd.js

Module parse failed: Unexpected token (501:24)
You may need an appropriate loader to handle this file type.

An ohter question: My hearbeatOutgoing and hearbeatIncoming set 10000, But sometimes it doesn't ping on time.This causes my ws link to sometimes break.

ws_error

kydner commented 1 year ago

same error