stomp-js / stompjs

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

How to use stompjs with vue2? #575

Open cn-ty opened 11 months ago

cn-ty commented 11 months 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 8 months ago

same error