Via to syntax signalr?

20 views
Skip to first unread message

Nguyễn Văn Tuấn

unread,
Aug 23, 2014, 11:36:56 PM8/23/14
to shar...@googlegroups.com
Hello.

i want write code same
$.connection.hub.url = "http://localhost:8081/WebsocketBase";

 and 
$.connection.hub.start().done(function () {
               //alert("connected")
               //hubBase.server.testTuan("abc");
           }).fail(function ()
           {
               alert("can't connect");
           });

how to write same on sharpkit, i use some option but not same 100%
 example  
[JsType(JsMode.Prototype, Export= false, Name = "$.connection")]
shaprkit only convert to 
new $.connection(url);

How to write same syntax signalr
Reply all
Reply to author
Forward
0 new messages