Object
Below is an example of a fully configured signalR options object:
signalR: {
url: 'http://test.com',
name: 'MessageHub',
createName: 'postMessage',
createdName: 'messagePosted',
updateName: 'updateThis',
updatedName: 'thingUpdated',
destroyName: 'obliterateIt',
destroyedName: 'itIsGone',
getListName: 'gimmeGimme',
listDataName: 'gotEmAll',
getName: 'wannaWanna',
dataName: 'gotIt'
}
Options
-
url
{String}
:
The url of your SignalR
hub.
-
name
{String}
:
The name of your SignalR
hub.
-
createName
{String}
:
The name of the method on your SignalR
hub you will use to create object instances. can-connect-signalr
provides a default name for this method (hub name + "Create"). Use this property to overwrite that name.
-
createdName
{String}
:
The name of the RPC listener your SignalR
proxy you will use to listen for objects created on your hub.
can-connect-signalr
provides a default name for this method (hub name + "Created"). Use this property
to overwrite that name.
-
updateName
{String}
:
The name of the method on your SignalR
hub you will use to update object instances. can-connect-signalr
provides a default name for this method (hub name + "Update"). Use this property to overwrite that name.
-
updatedName
{String}
:
The name of the RPC listener your SignalR
proxy you will use to listen for objects updated on your hub.
can-connect-signalr
provides a default name for this method (hub name + "Updated"). Use this property
to overwrite that name.
-
destroyName
{String}
:
The name of the method on your SignalR
hub you will use to destroy object instances. can-connect-signalr
provides a default name for this method (hub name + "Destroy"). Use this property to overwrite that name.
-
destroyedName
{String}
:
The name of the RPC listener your SignalR
proxy you will use to listen for objects deleted from your hub.
can-connect-signalr
provides a default name for this method (hub name + "Destroyed"). Use this property
to overwrite that name.
-
getListName
{String}
:
The name of the method on your SignalR
hub you will use to get a list of object instances. can-connect-signalr
provides a default name for this method (hub name + "GetList"). Use this property to overwrite that name.
-
listDataName
{String}
:
The name of the RPC listener your SignalR
proxy you will use to listen for object lists retrieved from your hub.
can-connect-signalr
provides a default name for this method (hub name + "ListData"). Use this property
to overwrite that name.
-
getName
{String}
:
The name of the method on your SignalR
hub you will use to get object instances. can-connect-signalr
provides a default name for this method (hub name + "Get"). Use this property to overwrite that name.
-
dataName
{String}
:
The name of the RPC listener your SignalR
proxy you will use to listen for objects retrieved from your hub.
can-connect-signalr
provides a default name for this method (hub name + "Data"). Use this property
to overwrite that name.