Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
the identifiers of web socket return data now include the argument list
Browse files Browse the repository at this point in the history
  • Loading branch information
richardbunt committed Feb 24, 2014
1 parent 0f43092 commit c94f3eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Telemachus/src/KSPWebSocketService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ private void streamData(object sender, ElapsedEventArgs e)

foreach (string s in toRun)
{
string refArg = s.Trim().Substring(1, s.Length - 2);
string trimedQuotes = s.Trim().Substring(1, s.Length - 2);
string refArg = trimedQuotes;
kspAPI.parseParams(ref refArg, ref dataSources);

kspAPI.process(refArg, out entry);

if (entry != null)
{
entry.formatter.setVarName(entry.APIString);

entry.formatter.setVarName(trimedQuotes);
entries.Add(entry.formatter.format(entry.function(dataSources)));
}
}
Expand Down
2 changes: 1 addition & 1 deletion WebPages/WebPagesTest/src/websockets-telemachus.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
}

function doStringifyTest() {
doSend(JSON.stringify({ "+":["v.altitude","n.roll","b.name[1]", "f.throttle"], "rate":100 }));
doSend(JSON.stringify({ "+": ["v.altitude", "n.roll", "b.name[1]", "r.resource[LiquidFuel]", "f.throttle"], "rate": 100 }));
}

function doComplexTest()
Expand Down

0 comments on commit c94f3eb

Please sign in to comment.