سؤال

Then not run in this script. Call function on websocket server running well.

// WAMP server
var wsuri = 'ws://localhost:8080';

// connect
ab.connect(wsuri,

   // WAMP session was established
   function (session) {

        // asynchronous RPC, returns promise object
        session.call("hitUp", {
            my : 'data'
        }).then(function(){
            alert('aaaa');
        });

   }
);
هل كانت مفيدة؟

المحلول

Problem was about websocket server muse be send callResult.

http://wamp.ws/spec/#callresult_message.

If your websocket server dosnt response to client callResult .then callback will not be executed.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top