a first file was sent by websocket

This commit is contained in:
Paul Schneider 2019-06-25 17:11:16 +01:00
commit 9f4d0b3aef
6 changed files with 86 additions and 35 deletions

View file

@ -3,6 +3,7 @@ namespace cli
using System.ComponentModel.DataAnnotations.Schema;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Yavsc;
public class ConnectionSettings
{
@ -38,8 +39,8 @@ namespace cli
[NotMapped]
[JsonIgnore]
public string StreamingUrl { get {
return Port==0 ? $"{SiteAccessSheme}://{Authority}/ws":
$"{SiteAccessSheme}://{Authority}:{Port}/ws";
return Port==0 ? $"ws://{Authority}"+Constants.LivePath:
$"ws://{Authority}:{Port}"+Constants.LivePath;
} }
}
}