Gus Caplan
fa609caee2
remove pako ( #1258 )
2017-03-16 09:15:48 -04:00
Schuyler Cebulskie
7232531eb1
Move all util methods into class
...
Remove TransformMessageOptions altogether
2017-02-15 22:25:18 -05:00
Schuyler Cebulskie
f4724d61b2
Fix #1095
2017-01-30 22:54:37 -05:00
Gus Caplan
87b600f78f
switch to os shim for safety ( #1136 )
...
* switch to os shim for safety
* Update Client.js
2017-01-26 21:21:43 +00:00
Gus Caplan
a3091f5262
Handle 4011 ws event code ( #1083 )
...
* 4011
* Update WebSocketManager.js
* smh gawdl3y
2017-01-11 22:59:09 +00:00
Amish Shah
7ede44bc00
Add CloseEvent external
2016-12-29 00:27:40 +00:00
Gus Caplan
2410fdf8d2
fix heartbeats once and for all ( #1016 )
2016-12-25 16:28:36 +00:00
Gus Caplan
e6a041241b
cleanup ws ratelimiting, and apirequest ( #957 )
...
* cleanup ws ratelimiting, and apirequest
* cleanup timestamps
* clean up timestamps
2016-12-23 14:37:43 +00:00
Amish Shah
74ef0b2e14
minor fixes
2016-12-23 14:37:35 +00:00
Amish Shah
b518437f52
Emit the close event on disconnect
2016-12-23 13:59:06 +00:00
Gus Caplan
050d3f9303
fix serialize for webpack ( #960 )
...
* fix serialize for webpack
* Update WebSocketManager.js
* Update WebSocketManager.js
2016-12-06 23:45:31 -05:00
bdistin
8eff36b744
Fix reconnect when using WS ( #952 )
...
* Fix reconnect when using WS
* Add disconnect status (fix reconnect with WS)
2016-12-05 21:06:49 +00:00
Gus Caplan
1e5afc1608
Add etf encoding support with erlpack ( #943 )
...
* the performance from this is astounding
* help uws
* save 15 bytes in webpacks
* update readme
* why is markdown like this
* optimizations
* Update WebSocketManager.js
2016-12-02 21:35:59 -05:00
Amish Shah
1933451d2f
fix reconnecting
2016-11-28 16:14:34 +00:00
Hackzzila
6afd80cf53
Make uws a peer dep, and readd ws ( #928 )
...
* Make uws a peer dep, and readd ws
* if -> else if
2016-11-27 19:59:50 +00:00
Amish Shah
9323882a8d
fix disabledEvents
2016-11-27 12:01:51 +00:00
Schuyler Cebulskie
c683790de7
Remove old uws-specific code (0.11.1 has the good stuff)
2016-11-25 19:40:53 -05:00
Gus Caplan
0008a18deb
Fantastic PR #368 by Gus ( #921 )
2016-11-23 22:16:19 -05:00
Gus Caplan
c91ee7a3e7
Replace ws with uws ( #918 )
...
* change to uws (waiting for the next release tho)
* clean up, fix reconnections (maybe)
* change voice to use uws
* so messy
2016-11-23 19:30:00 -05:00
Schuyler Cebulskie
a4193553e2
Optimise websocket events
2016-11-20 23:39:40 -05:00
Gus Caplan
2440a4a2c8
Add webpack building ( #907 )
...
* friggin webpack tho
* probably important
* add all the stuff to the package.json
* add minify builds and a nice package.json script to run it all
* clean up
* use uglify harmony branch so we can actually run minify builds that work
* update build system
* make test better
* clean up
* fix issues with compression
*
* c++ requirements in a node lib? whaaaaat?
* fix travis yml?
* put railings on voice connections
* 🖕🏻
* aaaaaa
* handle arraybuffers in the unlikely event one is sent
* support arraybuffers in resolvebuffer
* this needs to be fixed at some point
* this was fixed
* disable filename versioning if env VERSIONED is set to false
* Update ClientDataResolver.js
* Update ClientVoiceManager.js
* Update WebSocketManager.js
* Update ConvertArrayBuffer.js
* Update webpack.html
* enable compression for browser and fix ws error handler
* Update WebSocketManager.js
* everything will be okay gawdl3y
* compression is slower in browser, so rip the last three hours of my life
* Update Constants.js
* Update .gitignore
2016-11-20 19:38:16 -05:00
Schuyler Cebulskie
8306d50bd8
Clean up a bunch of promise stuff
2016-10-30 12:47:17 -04:00
Schuyler Cebulskie
fc307fab8a
Remove unnecessary array conversions
2016-10-16 21:14:59 -04:00
Schuyler Cebulskie
13aae621b8
Fix Hyper's error and make it more useful
2016-10-16 20:58:03 -04:00
Gus Caplan
96355a4968
add constants, some debug stuff ( #791 )
...
* add constants, some debug stuff
* i can't believe i did this
2016-10-10 20:53:54 +01:00
Schuyler Cebulskie
dabe51fc8d
Reorganise disabledEvents stuff
2016-10-09 14:41:57 -04:00
Amish Shah
530035e14b
Fix stacked heartbeats on reconnect and fix documentation
2016-10-01 20:21:38 +01:00
Schuyler Cebulskie
ba8dd3467a
Switch config back to camelCase
2016-09-27 18:42:32 -04:00
Amish Shah
0ee3d6bb8a
fix sequences not being reset on new ws sessions
2016-09-27 20:10:42 +01:00
Amish Shah
045153584a
redo the client user presence stuff
2016-09-27 17:57:47 +01:00
Schuyler Cebulskie
36f4df2931
Capitalise two letters
2016-09-26 23:18:39 -04:00
Amish Shah
534d7af8c3
Fix resuming sessions ( fixes #699 )
2016-09-25 15:03:54 +01:00
Gus Caplan
bd1449bc5a
make login sane ( #735 )
2016-09-24 17:55:31 +01:00
Schuyler Cebulskie
47d873a8ca
Move and improve debug/warn docs
2016-09-19 05:11:35 -04:00
Schuyler Cebulskie
6a94658dd7
Clean up some stuff
2016-09-19 04:32:24 -04:00
Gus Caplan
7cb2e8eef7
add disconnect event, document warn and debug events ( #702 )
...
* add documentation for events, and add a disconnect event, because i know people use that
* generate docs, and fix a hastily copied docstring
* fix permissions freak out
2016-09-14 00:12:10 -04:00
Schuyler Cebulskie
47d71d32f3
Make grammer gooder
2016-09-11 01:40:37 -04:00
Amish Shah
dd623891e2
websocket should silently error if there are no listeners for error
2016-09-09 17:05:38 +01:00
Amish Shah
85fae72b7b
Fix #657
2016-09-09 16:23:07 +01:00
Amish Shah
7475f734ac
Add debug stuff
2016-09-04 12:31:16 +01:00
Amish Shah
906672e538
Merge branch 'indev-rewrite-sharding' into indev-rewrite
2016-09-04 12:17:42 +01:00
Amish Shah
9c915d1e0a
Fix constants errors not giving a stacktrace
2016-09-04 11:53:48 +01:00
Schuyler Cebulskie
0b908f5bce
Cleanup Part 2: Electric Boogaloo (Reloaded) ( #594 )
...
* Cleanup Part 2: Electric Boogaloo (Reloaded)
* Moar cleanup
* Tweak NOT_A_PERMISSION error
2016-09-04 10:08:09 +01:00
Amish Shah
09dee3d46a
Fix ready never firing for truly unavailable guilds
2016-09-03 21:10:10 +01:00
Schuyler Cebulskie
68acf37fd4
Add stricter/better ESLint config ( #589 )
...
* Add stricter/better ESLint config
* Remove more unnecessary @returns
2016-09-03 20:45:23 +01:00
Amish Shah
a172fffd76
Actually add GUILD_SYNC
2016-09-03 17:59:16 +01:00
Schuyler Cebulskie
27652b94af
Make JSDocs follow general conventions ( #582 )
...
* Make JSDocs follow usual conventions
* Fix StringResolvable name
* Make function lowercase
2016-09-03 09:57:25 +01:00
Amish Shah
c70dfa83fb
Add ShardManager
2016-08-30 17:26:32 +01:00
Amish Shah
680ac48e3d
Emit error instead of console.log
2016-08-30 14:06:16 +01:00
Amish Shah
d249aa10cc
Add client.destroy();
2016-08-30 13:05:57 +01:00