WCF Duplex fast
I'm trying to do a service for a card game (bridge) on internet but I've some problems.
The requisite is to allow some users to register at a table and receive messages from the server relative to that table. I mean that when a player is registered on a table, he receive messages form the server regarding what happens on that table. For example:
I'm registered on table 8 and I play a card. The server receive the message "Card played" and send that message to the other 3 players registered on table 8.
I've tryied to do this in the following way:
when the server receive the registering message, saves the Callback channel of the player and when the server receive a "Play card" message, send a message to all the callback channels of the table where the player is seated.
But I receive an error: Channel is in state faulted.
Maybe I do not have to use the callback channel.
The only requisite is to be very fast and for this reason I've opted for using the TCP protocol.
Somebody have an Idea on how create this service? Or just a link to an example.
Thanks a lot and regards