Skip to content

Commit 3edbadd

Browse files
committed
Add suopport for unix-sock protocol (async redis)
1 parent 51d8658 commit 3edbadd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/socketio/async_redis_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def __init__(self, url='redis://localhost:6379/0', channel='socketio',
7070
def _get_redis_module_and_error(self):
7171
parsed_url = urlparse(self.redis_url)
7272
schema = parsed_url.scheme.split('+', 1)[0].lower()
73-
if schema == 'redis':
73+
if schema in ['redis', 'unix']:
7474
if aioredis is None or RedisError is None:
7575
raise RuntimeError('Redis package is not installed '
7676
'(Run "pip install redis" '

0 commit comments

Comments
 (0)