RESTful SignalR Service

Message BroadCaster

REST service URL

HTTP Verb/Action

Request

Response

[this site url]/messagebroadcast/broadcast
POST
Option Example
1. Event Name is enumerated and sent as JSON MessageRequest object  {
    "Message" : "Code Project is Awesome !",
    "EventName" : 3
 }
Success Response
Message successfully broadcasted !
Error Response
Opps got error.Exception, Message[Appropriate exception message]
2. Using request as query string [this site url]/messagebroadcast/broadcast?message=Code Project is Awesome!&eventName=onMessageListened
3. Event Name is defaulted to
onMessageListened
[this site url]/messagebroadcast/broadcast?message=Code Project is Awesome!

Message Listener

Hub URL

Hub Name

BroadCast Event Names

(Enum value starts from 1-5)
[this site url]
For SignalR Javascript Client, use
[this site url]/signalr
or include
<script src="/signalr"></script>
and use
[this site url]
BroadCastHub
onMessageListened
onInserted
onUpdated
onDeleted
onException