public static void UserSession(object threadContext) { Socket userSocket = (Socket)threadContext; SocketUser user = new SocketUser(userSocket); user.Chat(); }