You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.
I want to talk about my problem and how i do solved it!
If you have a better way or I did something wrong, please make a comment : )
1. Change socketio_path to following your mount_location.
I pretty sure your code will work, if you set mount_location to '/'and touch noting.
And the default mount_location is '/ws'. So you should change your socketio_path as '/ws/socket.io'
This is my think about now situation. Request('/') -> FastAPI --redirect--> ASGIApp('/') -> SocketIOPath('/socket.io' )
2. When you use postman.
You maybe use Socket.io instead of WebSocket.
But i recommend you to using websocket, Becuase of the path postman automatically direct.
It miss my /ws path. you can check it below image.
Below image is example about websocket. You can use like it!
The text was updated successfully, but these errors were encountered:
Hello! thanks for pretty library!!
I want to talk about my problem and how i do solved it!
If you have a better way or I did something wrong, please make a comment : )
1. Change
socketio_path
to following yourmount_location
.I pretty sure your code will work, if you set
mount_location
to'/'
and touch noting.And the default
mount_location
is'/ws'
. So you should change your socketio_path as'/ws/socket.io'
This is my think about now situation.
Request('/') -> FastAPI --redirect--> ASGIApp('/') -> SocketIOPath('/socket.io'
)2. When you use postman.
You maybe use Socket.io instead of WebSocket.
But i recommend you to using websocket, Becuase of the path postman automatically direct.
The text was updated successfully, but these errors were encountered: