It is not possible to filter the message on the server today, but you can block messages for the caller from the client side. If you look at some patterns in signalr, you will see that they assign each client a generated identifier for the client in a method (usually called a connection). Whenever you call a method from a hub, pass the identifier of the calling client, then on the client side, check to make sure that the client identifier does not match the identifier of the caller. eg.
public class Chat : Hub { public void Join() {
Client side
var chat = $.connection.chat; chat.doIt = function(id, value) { if(chat.id === id) {
Hope this helps.
davidfowl
source share