New Version is Ready  

PokeIn v2.221! is ready for action!
Click here to read changelog & download
the latest library.

 

FREE Community Edition  

Free, feature rich community edition available!
Visit editions page to see the details of our free community version..

 

Any Question?  

Click here to visit our Frequently Asked Questions page or visit Discussions section to ask your own questions to the community and our professionals.

 

PokeIn client side methods and events  

bool PokeIn.IsConnected
            Indicates the status of connection. (Do not assign false to close the connection)

bool PokeIn.IsListenActive()
            Indicates the status of listener.

bool PokeIn.PageUnloading
            Indicates, whether the hosting page is unloading or not. You may check this parameter's value in order to decide for ReConnect call

event PokeIn.OnServerNotAvailable

Fires when PokeIn can't connect to the server after 5 attempts 
Use this functionality in order to detect your server is down. After this event fired, you need to reload the page since PokeIn won't be trying to connect.

Sample:

PokeIn.OnServerNotAvailable = function (){

                //put your codes here

};


string PokeIn.GetClientId

Returns the active client id.

Sample:

var client_id = PokeIn.GetClientId();

 

string PokeIn.GetJointId

Returns the active joint id. Usable with the "Dynamic Bind" connections. "Joint Sample" project under samples page may helpful to understand the usage.

Sample:

var client_id = PokeIn.GetJointId();

 

event PokeIn.OnCompilerError (PokeIn version 1.30+)

Fires when a server side compilation error occurs.

Sample:

PokeIn.OnCompilerError = function (message){

                alert(message + “ received!”);

};


event PokeIn.OnClientObjectsRemoved (PokeIn version 1.30+)

Fires when the server side instance of this client removed due to;

·         Object corruption on server side class

·         Client is disconnected

·         Despite of Multiple view is disabled, another one opened on same window

Sample:

PokeIn.OnClientObjectsRemoved = function ( ){

                //put your codes here

};

 

void PokeIn.Close

Send “Disconnection” request to the server and closes the client connection.This method doesn't fire OnClose event, even though the client disconnected after the call.

Sample:

PokeIn.Close();

 

event PokeIn.OnClose

Fires when the active connection closed and server side instance of the active client removed.

Sample:

PokeIn.OnClose = function ( ){

                //put your codes here

};

 

event PokeIn.OnMessageReceived (PokeIn version 1.30+)

Fires when a new message received from the server.

Sample:

PokeIn.OnMessageReceived = function (message ){

                //put your codes here

};

 

event PokeIn.OnMessageExecuted (PokeIn version 1.30+)

Fires when a server side message successfully executed.

Sample:

PokeIn.OnMessageExecuted = function (){

                //put your codes here

};

 

event PokeIn.OnError

Fires when a client side compilation issue occurs.

Sample:

PokeIn.OnError = function (message){

                //put your codes here

};

 

void PokeIn.ReConnect

Reconnects a client to the server. (clientid will be changed and all the PokeIn event assignments will be removed)

A successful call to this method will raise document.OnPokeInReady event again.

Sample:
PokeIn.ReConnect(
);


Sample 2: if you want to define listener URL manually, you can use another version of this method.
PokeIn.ReConnect( listenerURL );

 

event document.OnPokeInReady

Fires when PokeIn client side libraries entirely downloaded to the client browser.

Sample:

document.OnPokeInReady = function (){

                PokeIn.Start( function(is_started){

                                //put your codes here

                });

};

 

void PokeIn.Start

Sends a connection request to the server.

Sample:

PokeIn.Start(

function(is_started){

                                //put your codes here
                }
);


PokeIn ASP.NET WebSocket & Reverse Ajax Library .NET 2+, Mono 2.4+ Compatible!
  • Reverse Ajax & Server Push
  • Hybi00, Hybi10, Hybi17 RFC 6455 WebSocket Server
  • Intelligent Fail Recovery
  • Desktop Client Support
  • Java Client (Linux, OSX, Android, Embedded)
  • Objective-C Client ( IOS, OSX )
  • Secured Message Encoding (both sides)
  • Clone Message Attack Protection
  • Content Resource Manager / Delivery
  • ASP.NET MVC Compatible
  • Mono Runtime Support
  • Session Cloning Detection
  • Thread Safe Object Managers
  • Client Disconnection Detection
  • Apache 2.2+, Nginx, IIS 5+Compatible
  • Sleep Mode and Cross Domain Listeners
  • Automated Object Level Joint Capabilities
  • Silverlight Support
  • Dynamic Connection Management
  • Complete .NET to JSON Serialization
  • Subscribe / Leave Channels
  • Event / Message Ordering
  • Multiple Server Support
  • Load Balancer Support
  • Multi Core Management
  • Azure, EC2 etc. Compatible
  • Lightweight and cross-browser (150+ browser versions)
    (IE, FireFox, Safari, Opera, Chrome, IOS, Android, ....)
  • WCF & .NET Remoting Support
  • Unlimited Concurrent Connections (Cluster Support)

Copyright 2013 Zondig

Privacy Statement|Terms Of Use