This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Terminals | |
var cuantos = ToTerm("cuantos"); | |
var cuantas = ToTerm("cuantas"); | |
var cual = ToTerm("cual"); | |
var que = ToTerm("que"); | |
var cuando = ToTerm("cuando"); | |
var tiene = ToTerm("tiene"); | |
/* más aquí */ | |
var number = new NumberLiteral("number"); | |
var number2 = new NumberLiteral("number2"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
//Abrimos la conexión a DiPS | |
diPSClient.Connect('ws://localhost:8888/dips'); | |
… | |
diPSClient.Subscribe("searchresults", function (msg) { | |
… | |
//actualizar la UI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Abrimos la conexión a Dips | |
client = new DiPS.Client.DiPSClient("ws://localhost:8888/dips"); | |
//Nos subcribimos al evento test | |
client.Subscribe("test", (m) => | |
{ | |
//Imprimimos en la consola la entidad (el objeto m es dynamic) | |
Console.WriteLine("Name: {0}, age:{1}",m.name, n.age); | |
}); |