slice
e8b29ddd90
general code cleanup
...
* remove encoding from .encode()/.decode() calls as 'utf-8' is already
the default
* code cleanup/compactify
2018-06-19 17:53:56 -07:00
slice
d41641929c
add ws stuff to example config
2018-06-19 17:52:25 -07:00
Luna Mendes
4de78a4e16
gateway.websocket: remove despacito
2018-06-19 21:46:57 -03:00
slice
7d64716487
tweak some logging calls
2018-06-19 17:46:44 -07:00
slice
a6a4845778
fix NameError
2018-06-19 17:42:21 -07:00
Luna Mendes
6f0528eaec
gateway.websocket: detach app object from GatewayWebsocket
...
It doesn't work since quart's objects only work with stuff
that is already from quart, e.g the current_app stuff
requires you to be inside a special hidden context
that only quart functions get.
Gateway code is detached from quart since quart's websocket
stuff can't handle custom error codes.
- auth: optional db detach
- gateway.errors: add InvalidShard, ShardingRequired
- gateway.gateway: pass asyncpg connection and StateManager
- gateway.state: add repr, etc
- gateway.state_man: add remove(), fetch_states()
2018-06-19 21:05:26 -03:00
Luna Mendes
77c5a101c6
gateway.websocket: add basics of identify
...
- auth: add raw_token_check
- gateway.gateway: pass the app object to GatewayWebsocket
- gateway.state: add gen_session_id()
- gateway: add state_man
2018-06-19 19:09:12 -03:00
Luna Mendes
32b9698ea7
add basic gateway logic
2018-06-19 04:06:01 -03:00
Luna Mendes
c78e4c5f76
remove print call
2018-06-17 17:09:34 -03:00
Luna Mendes
39d85d1a1a
add basis of websockets
2018-06-17 17:07:52 -03:00
Luna Mendes
7e7a6a1aeb
blueprints.gateway: add implementations for gateway urls
...
- config: add DEBUG, IS_SSL, WEBSERVER_URL
- remove HOST, PORT
- litecord: add auth module
2018-06-17 14:24:24 -03:00
Luna Mendes
f7f387dcf0
litecord.blueprints: add auth blueprint
...
- Pipfile: add bcrypt and itsdangerous
- litecord: add errors module
- litecord: add snowflake module
- run: add error handlers
- schema: add UNIQUE constraint to users.email
- remove users.password_salt
2018-06-17 04:09:29 -03:00
slice
6b066bba05
add base /gateway bp
2018-06-16 17:00:11 -07:00
slice
6350ff688c
clean
2018-06-16 17:00:08 -07:00
slice
8406188f5b
migrate to pipenv
2018-06-16 16:36:41 -07:00
Luna Mendes
c11851c4b0
add schema.sql
...
- add basic config example stuff
2018-06-16 19:25:07 -03:00
Luna Mendes
8961838148
add quart basic
2018-06-16 02:33:16 -03:00
Luna Mendes
78c28ba5e5
Initial Commit 👌 😂
2018-06-15 21:59:52 -03:00