NationalSecurityAgency / skills-client

SkillTree client libraries facilitating the rapid integration of a gamified tool training approach in conjunction with skills-service. Provides out of the box support for Angular, React, Vue.js, and native Javascript.
https://skilltreeplatform.dev
Apache License 2.0
82 stars 25 forks source link

remove ``webstomp-client`` and use ``sockjs-client`` api directly #153

Closed sudo-may closed 2 years ago

sudo-may commented 3 years ago
rmmayo commented 3 years ago

https://www.dariawan.com/tutorials/spring/create-spring-boot-websocket-app-using-stomp-and-sockjs/

rmmayo commented 3 years ago

it looks like the example we looked at is using stomp-websocket instead of webstomp-client. Both of these libs are ~3 years old and no longer seem to be maintained, and I think that webstomp-client evolved from stomp-websocket - he references it here.

stomp-websocket webstomp-client

After further digging, I believe we want to use stompjs

rmmayo commented 3 years ago

@sudo-may testing out stompjs....seems much faster to setup the initial, but after several attempts I was able to report a skill prior to the websocket connection being fully established:

image

rmmayo commented 3 years ago

@sudo-may testing out stompjs....seems much faster to setup the initial, but after several attempts I was able to report a skill prior to the websocket connection being fully established:

update, the previous screenshot was done using Spring's built in simple message broker, when testing using rabbitmq the messages are delivered even if the skill was reported before the connection was fully established.

image