• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Using flask socketio to follow kubernetes pod

Resolved: Using flask socketio to follow kubernetes pod

0
By Isaac Tonny on 15/03/2023 Issue
Share
Facebook Twitter LinkedIn

In this post, we will see how to resolve Using flask socketio to follow kubernetes pod

Question:

I am trying to send kubernetes pod logs using socketio websocket to client, I can see the print(line_str) but socket cannot connect and cannot recieve anything under log_line event
request -> ws://localhost:5005/ws-connect?namespace=<ns>&pod=<pod_name>
Thread is not blocked I can still use flask for other endpoints, I just cannot connect through websocket. Any help is appreciated

Best Answer:

Instead of doing every step in connect event, just parsed between events. Solution below works for me.

If you have better answer, please add a comment about this, thank you!

Source: Stackoverflow.com

flask flask-socketio kubernetes-python-client
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: How to resolve LNK2001 in c++ projects

26/03/2023

Resolved: How to correctly initialize vector of number in Typescript

26/03/2023

Resolved: mysql calculating to get profit or loss from 2 tables ( Purchases and Sales) in FIFO mode

26/03/2023

Comments are closed.

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.