Giter VIP home page Giter VIP logo

Comments (4)

jfarcand avatar jfarcand commented on May 28, 2024

Looking.

from wasync.

jfarcand avatar jfarcand commented on May 28, 2024

Working on it...but I can't reproduce it. Which server are you using? You set the header as LONG-POLLING but the primary transport is WEBSOCKET, which might explain the issue.

from wasync.

carloslizarazo avatar carloslizarazo commented on May 28, 2024

i don't know if it's the same problem ....

I create a socket ....

Socket sckt = socket.on(new Function() {
@OverRide
public void on(String r) {
System.out.println("Llegada : "+r);
response.set(r);
}
}).on(new Function() {
@OverRide
public void on(Throwable t) {
System.out.println(t.getMessage());
}
})
.open(request.build());

I use sckt.fire() and it works !!! .... but if i use it a second time .... the on() method does not register the new response, i have to open the socket again to make it work

could this be a reconnection problem ??

Oh, these are my parameters (I'm using JBoss 7.1.1):

RequestBuilder request = client.newRequestBuilder().method(Request.METHOD.GET).uri("http://localhost:8080/AtmosphereTest/echo/test").
transport(TRANSPORT.LONG_POLLING)
.header(HeaderConfig.X_ATMOSPHERE_TRANSPORT, HeaderConfig.LONG_POLLING_TRANSPORT);

from wasync.

jfarcand avatar jfarcand commented on May 28, 2024

Fixed

from wasync.

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.