stompjs icon indicating copy to clipboard operation
stompjs copied to clipboard

How to use stompjs with vue2?

Open cn-ty opened this issue 2 years ago • 1 comments

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

cn-ty avatar Jul 21 '23 08:07 cn-ty

same error

kydner avatar Nov 08 '23 08:11 kydner