/// <summary> /// Initialises a new server instance /// </summary> /// <param name="httpServerPort">The port at which the HTTP server should run</param> /// <param name="websocketPort">The port at which the websocket server should run</param> public ToucheeServer(int httpServerPort = 80, int websocketPort = 81) { // Set local parameters _httpServerPort = httpServerPort; this.WebsocketPort = websocketPort; // Init serializer // TODO: WEIRD SHIT! No idea why, but if you omit the following line, everything goes AWOL new Nancy.Serialization.JsonNet.JsonNetSerializer(); _serializer = new ToucheeJsonSerializer(); }
/// <summary> /// Initialises a new server instance /// </summary> /// <param name="httpServerPort">The port at which the HTTP server should run</param> /// <param name="websocketPort">The port at which the websocket server should run</param> public ToucheeServer(int httpServerPort = 80, int websocketPort = 81) { // Set local parameters _httpServerPort = httpServerPort; this.WebsocketPort = websocketPort; // Init serializer // TODO: WEIRD SHIT! No idea why, but if you omit the following line, everything goes AWOL new Nancy.Serialization.JsonNet.JsonNetSerializer(); _serializer = new ToucheeJsonSerializer(); }