Questions tagged [project2]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

Flask-socketio not able to send instant messages

I am trying to make a basic chat application with rooms using flask-socketio, but whenever I run the code on my browser, a weird error comes on the console and I am not able to send any messages ...
0
votes
0answers
11 views

JS: How to interact with new HTML element created with javascipt?

I am learning javascript with the cs50w course. As part of Project2 I am developing a chat app, and my issue raises when I try to add new elements to a list of chat rooms, see them, and interact with ...
0
votes
1answer
49 views

Please help with socketio messaging

I can't seem to get a message sent to the server and then added to my html document as a list item using socketio. I get to type in a message and click the send button, but then nothing happens. As ...
0
votes
0answers
44 views

CS50W Project 2: socket.io is not working for me

I am trying to create the channels real time so they can be broadcasted and i save them in a list on the backend. I will later make sure that all the channels in the list are also put in the list but ...
0
votes
0answers
26 views

CS50W Project 2: Rooms vs Namespaces

I would like to set up separate rooms (or namespaces? which one is better?) for the channels so the messages can only go to the specific channel. I would do this by getting the name of the channel and ...
0
votes
1answer
93 views

CS50W Project2: communication between SocketIO and JavaScript

I'm trying to get new channel names input by the user to 1) show up on the screen in an unordered list and 2) also show up on other users' screens. I tried to closely follow the template that was used ...
0
votes
1answer
24 views

How to simulate different users using only one machine

I am using LocalStorage to save the display name and it does remember the display name after the browser is closed. However to simulate different users on the same machine chatting to each other, I ...
0
votes
1answer
131 views

Disable caching of css and js file in flask on Safari or Chrome?

Is there any way so that on refresh it loads css , js file automatically in flask . I am using MacOS and using two browser Safari and Chrome . Currently on safari I have to clear cache and refresh the ...
0
votes
1answer
64 views

CS50 Web Development Project 2 Attribute Error: module 'engineio' has no attribute 'WSGIApp'

This is my first time trying to run flask on Linux, I've made projects 0 and 1 in Windows 7. I've been able to run Project 2 on Windows, right before I switched to Linux. As I enter "flask run" on the ...
0
votes
1answer
66 views

Getting the server to remember a user display name (cs50W project2)

so i've made other web applications that remember information about the user via login. However project 2 does not states the need to login, only that his display name should be remember when he ...
0
votes
0answers
87 views

Issue with CS50W's Project2 - submitted text not passed to chat window

I have a problem regarding passing posted messages into the proper field and presenting them to the user. The app is supposed to transfer the text submitted in "messenger" into the "messages" so to ...
0
votes
1answer
353 views

CS50 Web programming with python: project2

When i'm running 'flask run' from the terminal window, I'm getting '* Serving Flask-SocketIO app "application"', however I don't get further provided with an URL!? Anyone any thought on that what the ...