Replace SuperSocket with SuperWebSocket issues

Apr 20, 2013 at 12:59 PM
Edited Apr 20, 2013 at 12:59 PM
Hello,
I have a simple Server which uses SuperSockets, and the Command Line protocol. I decided to use SuperWebSockets instead because my client can use WebSockets.

My problem is when my server inherits from WebSocketServer instead of AppServer, I cannot seem to use the command line protocol. I was hoping that since SuperWebSocket is built on top of SuperSocket, I would have access to the Command Line protocol but it does not compile. Any Suggestions?
I have already added the SuperWebSocket reference, and I have:
using SuperWebSocket;
using SuperWebSocket.Protocol;
using SuperWebSocket.SubProtocol;

I changed the following
FROM:
public class MyServer : AppServer<MySession>
{
    public MyServer()
        : base(new CommandLineReceiveFilterFactory
            (Encoding.Default, new BasicRequestInfoParser(":", ",")))
    {
    }
}
TO:
public class MyServer : WebSocketServer<MySession>
{
    public MyServer()
        : base(new CommandLineReceiveFilterFactory
            (Encoding.Default, new BasicRequestInfoParser(":", ",")))
    {
    }
}
Apr 24, 2013 at 11:30 PM
I still have not figured this out.
Does anyone have any suggestions?
Coordinator
Apr 25, 2013 at 2:27 AM
Edited Apr 25, 2013 at 2:27 AM
You cannot do it like this.

You should construct a sub protocol instance and pass it in to websocketserver's constrcutor, and your commands should be defined as SubCommands.
Apr 25, 2013 at 10:11 PM
Hello,

Thank you for your response.
I have looked around, and downloaded the samples. Can you point out any particular sample, or documentation that will be of help to me as I implement the subcommands?

Thank you