Skip to content

Commit 6673f43

Browse files
authored
Merge pull request #103 from seatable/fix-connect-websocket
fix connect websocket by setting socket_io_path
2 parents ece9767 + 104a95a commit 6673f43

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

seatable_api/socket_io.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ def _handle_disconnect(self, namespace):
1818
namespace = namespace or '/'
1919
self._trigger_event('io-disconnect', namespace=namespace)
2020

21+
def connect(self, *args, **kwargs):
22+
kwargs['socketio_path'] = '/api-gateway/socket.io'
23+
return super().connect(*args, **kwargs)
24+
2125

2226
class SocketIO(object):
2327

0 commit comments

Comments
 (0)