Coder Social home page Coder Social logo

Comments (13)

nathandunn avatar nathandunn commented on July 21, 2024

So, using the grails-websocket would be by far the easiest as it wraps both Spring and Stomp and would result in most likely a lot less code:

https://github.com/zyro23/grails-spring-websocket

However, since everything is so dojo-fied . . it might be very problematic. If I re-enable the service via the service endpoint (AnnotationEditorEndpoint) it might work well enough.

from apollo.

nathandunn avatar nathandunn commented on July 21, 2024

The AMD is the bigger problem . . . even if I get the older code in there, adding the annotation to the controllers, means that I still need access to the grails service classes. I can do this via websockets . . . or somehow include HTML that will bridge the two implementations. Its unfortunate that dojo does not support stomp.

from apollo.

cmdcolin avatar cmdcolin commented on July 21, 2024

we use a couple non-AMD modules in webapollo. it's a little hacky but i have examples of this setup at the top of main.js to load some bbop modules.

from apollo.

nathandunn avatar nathandunn commented on July 21, 2024

Awesome. I see. That looks pretty straight-forward. Doing this with spring and stomp library support eliminates a lot of code.

I also wanted to note that websockets are very well supported on all major web browsers except IE 8 and 9.

Nathan

On Jan 2, 2015, at 1:19 PM, Colin Diesh [email protected] wrote:

we use a couple non-AMD modules in webapollo. it's a little hacky but i have examples of this setup at the top of main.js to load some bbop modules.


Reply to this email directly or view it on GitHub #44 (comment).

from apollo.

cmdcolin avatar cmdcolin commented on July 21, 2024

ie8 and 9 are not really supported by jbrowse either. from the homepage

Microsoft Internet Explorer (9 and later, 10 required for BAM, BigWig, VCF+Tabix)

from apollo.

nathandunn avatar nathandunn commented on July 21, 2024

That worked great . . . in here . . . now trying to put it all back together . . on this branch (grails1-realdata) until after the conference.

https://trello.com/c/drb7Fzk4

from apollo.

nathandunn avatar nathandunn commented on July 21, 2024

Note that I also added a "./copy_client.sh" method for the inteirm.

from apollo.

cmdcolin avatar cmdcolin commented on July 21, 2024

why is sockjs needed? it says it is websocket emulation

from apollo.

nathandunn avatar nathandunn commented on July 21, 2024

The most important reason to use it is because it integrates directly with Spring and thus Grails.

SockJS, from this description:

https://github.com/sockjs/sockjs-client https://github.com/sockjs/sockjs-client

tries to use native web sockets first and then uses the fallback. This is nice, but definitely not essential.

I think the other reason is that its a nice wrapper around web sockets, as well (on both ends) and requires a lot less (and more manageable code).

Nathan

On Jan 2, 2015, at 2:47 PM, Colin Diesh [email protected] wrote:

why is sockjs needed? it says it is websocket emulation


Reply to this email directly or view it on GitHub #44 (comment).

from apollo.

cmdcolin avatar cmdcolin commented on July 21, 2024

sockjs has an extra protocol layer built on top of websockets. i would personally vote against it since we already established we don't need the additional backwards compatibility.

from apollo.

cmdcolin avatar cmdcolin commented on July 21, 2024

i dunno. i guess things like socket.io also have an extra protocol. it just seems like it is kind of a silly thing to have but i won't protest

from apollo.

nathandunn avatar nathandunn commented on July 21, 2024

Convenience wrappers are good things. Especially if they implement a lot of sane defaults that provide stability, performance, and scalability.

Nathan

On Jan 2, 2015, at 3:26 PM, Colin Diesh [email protected] wrote:

i dunno. i guess things like socket.io also have an extra protocol. it just seems like it is kind of a silly thing to have but i won't protest


Reply to this email directly or view it on GitHub #44 (comment).

from apollo.

nathandunn avatar nathandunn commented on July 21, 2024

hell's yes!

from apollo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.