synko.create( url, [options] ) : Object
Create a synko instance. Optionally options can be passed.
Arguments
url
(String) Url with the prefix as default/synko
. The connector used will be added to the prefix. For synko.socketio the prefix will be/synkosocketio
or/yourprefixsocketio
.
[options]
(Object):connector
(synko.ws OR synko.socketio OR synko.SockJS) Defaults is synko.ws
Returns (Object)
A synko instance is returned.