luixaviles / socket-io-typescript-chat

A chat application implemented using Socket.io, TypeScript, Angular and Angular Material components

Home Page:https://medium.com/dailyjs/real-time-apps-with-typescript-integrating-web-sockets-node-angular-e2b57cbd1ec1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

On the Server side - Cannot GET /

KarinNiffeler opened this issue · comments

First of all, it is a great application! Thank you.

On the client side, everything works fine. I can start the server on localhost:8080 and I see all the conversation of the diverse localhost:4200s in the server terminal. But in the browser localhost:8080 (server) it is written Error: "Cannot GET /". What could be the issue? How can I fix this error?
I have downloaded your files from GitHub and the terminal (server) looks fine (see screenshot).

Many thanks for your help!
Karin
screen shot 2018-08-28 at 22 56 00

Meanwhile, I have found the bug. If you like to use angular 6 then you will need to add
(window as any).global = window; to polyfills.ts

socketio/socket.io-client#1206

I just updated the client and server project with the latest versions available. Please let me know if you still have this issue.