If I use this code on big .Net I get a valid Host value.
serverUrl = "ws://ws.pusherapp.com:80/app/" + pusherAppKey + "?client=js&version=1.9.3&protocol=5"
this.serverUri = new Uri(serverUrl);
string host = this.serverUri.Host;
But if I use it on .NETMF, I get an empty string value.
Here’s some more info:
-serverUri
AbsolutePath "//ws.pusherapp.com:80/app/<my appKey>?client=js&version=1.9.3&protocol=5"
AbsoluteUri "ws://ws.pusherapp.com:80/app/<my appKey>?client=js&version=1.9.3&protocol=5"
Host ""
HostNameType Unknown System.UriHostNameType
IsAbsoluteUri 1 bool {int}
IsLoopback 0 bool {int}
IsUnc 0 bool {int}
m_AbsolutePath "//ws.pusherapp.com:80/app/<my appKey>?client=js&version=1.9.3&protocol=5"
m_Flags 0 int
m_host "" string
m_hostNameType 0 System.UriHostNameType {int}
m_isAbsoluteUri true bool
m_isUnc false bool
m_OriginalUriString "ws://ws.pusherapp.com:80/app/<my appKey>?client=js&version=1.9.3&protocol=5"
m_port -1 int
m_scheme "ws"
OriginalString "ws://ws.pusherapp.com:80/app/<my appKey>?client=js&version=1.9.3&protocol=5"
Port -1 int
Scheme "ws"