Permalink
Browse files

Adding required polyfills

  • Loading branch information...
moozzyk committed Oct 1, 2017
1 parent 3228a10 commit 946f85d6ffa2b765188857acd5c7bbff794b2d38
Showing with 59 additions and 2 deletions.
  1. +4 −1 SignalRChatNode/index.js
  2. +52 −0 SignalRChatNode/package-lock.json
  3. +3 −1 SignalRChatNode/package.json
View
@@ -1,11 +1,14 @@
const readline = require('readline');
const signalR = require('@aspnet/signalr-client');
XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest;
WebSocket = require('websocket').w3cwebsocket;
let rl = readline.createInterface(process.stdin, process.stdout);
rl.question('Enter your name: ', name => {
console.log(name);
let connection = new signalR.HubConnection('http://localhost:5000/chat');
connection.start()
.catch(error => {

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -9,6 +9,8 @@
"author": "",
"license": "ISC",
"dependencies": {
"@aspnet/signalr-client": "^1.0.0-alpha1-final"
"@aspnet/signalr-client": "^1.0.0-alpha1-final",
"websocket": "^1.0.24",
"xmlhttprequest": "^1.8.0"
}
}

0 comments on commit 946f85d

Please sign in to comment.