socket.io: fix
This commit is contained in:
parent
3d8d378a90
commit
b5ff2b9feb
@ -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
1
build/scripts/socket.sh
Normal file
@ -0,0 +1 @@
|
||||
yarn install --cwd common/ASC.Socket.IO --frozen-lockfile
|
@ -16,7 +16,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="WebSocketSharp-netstandard" Version="1.0.1" />
|
||||
<PackageReference Include="WebSocketSharp" Version="1.0.3-rc11" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -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"]));
|
||||
|
Loading…
Reference in New Issue
Block a user