Skip to content

Instantly share code, notes, and snippets.

@joecabezas
Created December 5, 2017 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joecabezas/0b552253bdd1bf20ff625e66f59e43b2 to your computer and use it in GitHub Desktop.
Save joecabezas/0b552253bdd1bf20ff625e66f59e43b2 to your computer and use it in GitHub Desktop.
stream game for streamlabs
var url = "ws://localhost:1004";
var ws = new WebSocket(url);
ws.onopen = function()
{
console.log("connected to " + url);
// Web Socket is connected, send data using send()
ws.send(
JSON.stringify({
type:"MESSAGE_TYPE_MEMORIZE",
data: "{userMessage}"
})
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment