Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use stompjs with vue2? #575

Open
cn-ty opened this issue Jul 21, 2023 · 1 comment
Open

How to use stompjs with vue2? #575

cn-ty opened this issue Jul 21, 2023 · 1 comment

Comments

@cn-ty
Copy link

cn-ty commented Jul 21, 2023

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
Copy link

kydner commented Nov 8, 2023

same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants