miguelgrinberg / Flask-SocketIO-Chat

A simple chat application that demonstrates how to structure a Flask-SocketIO application.
http://blog.miguelgrinberg.com/post/easy-websockets-with-flask-and-gevent
MIT License
676 stars 242 forks source link

didn't work on localhost cuz of `https` missing from source #35

Closed adsau59 closed 2 years ago

adsau59 commented 3 years ago

https://github.com/miguelgrinberg/Flask-SocketIO-Chat/blob/2444310caa5bfd46217684ba6483df43c0ac126f/app/templates/chat.html#L4-L5

worked after I entered it

miguelgrinberg commented 3 years ago

"didn't work" does not help me understand what the problem is. Those two lines are correct. If you want me to help you troubleshoot the issue please provide more details, including error messages and which browser you are using.

adsau59 commented 2 years ago

it wasn't able to fetch the scripts as https: was missing from src attribute

miguelgrinberg commented 2 years ago

I asked you to provide the browser. As far as I know non-protocol relative URLs are supported by all major browsers. It doesn't make a whole lot of sense to use them anymore, but they should work pretty much everywhere, I think.

adsau59 commented 2 years ago

closing this as im not able to reproduce this issue again