Changes from 0.7

Feb 24, 2013 at 3:07 PM
Edited Feb 24, 2013 at 3:23 PM
I replaced 0.6 version by the new 0.7, but seems there are a lot of changes:

I had to delete on the custom session:
public override void HandleExceptionalError(Exception e) {

and I had to change:

socket.NewSessionConnected += new SessionEventHandler<...
socket.NewSessionConnected += new SessionHandler<...

and SendResponse by Send

the problems starts now:
.Setup(new RootConfig(), new ServerConfig {
Mode = SocketMode.Async,
}, SocketServerFactory.Instance);

I have two problems here, first, there is no Async or Sync in SocketMode and Instance doesn't exists inside SocketServerFactory.

I changed .Instance by new SocketServerFactory, and runs good (changing obvioulsy, .async by .tcp).
I am doing good this? Where is the old sync/async mode?

In adition, I want to answer if all clients can run in a single thread and how to do that.

Feb 25, 2013 at 12:18 AM
  1. Mode = SocketMode.Async is not required, SuperWebSocket/SuperSocket don't support "Sync" mode in the latest version
  2. SocketServerFactory also is not required now, please follow the code in the sample projects:
Feb 25, 2013 at 1:18 PM
Ok, thanks!