socket.io: fix

This commit is contained in:
SuhorukovAnton 2020-08-03 11:20:57 +03:00
parent 3d8d378a90
commit b5ff2b9feb
4 changed files with 6 additions and 2 deletions

View File

@ -27,6 +27,9 @@ call build\scripts\urlshortener.sh
echo "ASC.Thumbnails"
call build\scripts\thumbnails.sh
echo "ASC.Socket.IO"
call build\scripts\socket.sh
echo "ASC.Web.sln"
call dotnet build ASC.Web.sln /fl1 /flp1:LogFile=build/ASC.Web.log;Verbosity=Normal

1
build/scripts/socket.sh Normal file
View File

@ -0,0 +1 @@
yarn install --cwd common/ASC.Socket.IO --frozen-lockfile

View File

@ -16,7 +16,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="WebSocketSharp-netstandard" Version="1.0.1" />
<PackageReference Include="WebSocketSharp" Version="1.0.3-rc11" />
</ItemGroup>
<ItemGroup>

View File

@ -152,7 +152,7 @@ namespace ASC.Socket.IO.Svc
private void StartPing()
{
// Thread.Sleep(PingInterval);
Thread.Sleep(PingInterval);
var error = false;
WebSocket = new WebSocket(string.Format("ws://127.0.0.1:{0}/socket.io/?EIO=3&transport=websocket", StartInfo.EnvironmentVariables["port"]));