deathcap
4b3f8b5b09
Update minecraft-data to use GitHub dependency on PrismarineJS/node-minecraft-data
2016-01-31 20:43:07 -08:00
deathcap
84c4c26503
Update to minecraft-data ^0.19.0
2016-01-31 20:11:15 -08:00
deathcap
ddcca012ef
Pre-Netty protocol versions are not supported yet
2016-01-31 12:48:39 -08:00
deathcap
88e8374ad4
Update documentation for version:false option
2016-01-31 12:44:06 -08:00
deathcap
2e2a213076
Update client connect() for options move compatibility
2016-01-31 12:28:25 -08:00
deathcap
f17de6410b
Use new object for ping() to avoid potential cross-contamination
2016-01-31 12:26:03 -08:00
deathcap
d0f64e9c65
Set state property instead of setSerializer() to ensure serializers are properly piped
2016-01-31 12:20:51 -08:00
deathcap
9a68fd6c34
Support options.version==false in createClient() to auto-detect version
2016-01-30 22:53:38 -08:00
deathcap
163e2157fc
Remove useless statement
2016-01-30 22:49:57 -08:00
deathcap
af62189e19
Rename src/createClientAuto.js -> src/client/autoVersion.js
2016-01-30 22:34:26 -08:00
deathcap
ea3b306988
Move options to client object
...
This allows client plugins to change the options on the client object,
and have it reflected in other plugins. Previously, had to rely on the
options being the same object, and hold a reference to it. Now it is
always accessible as `client.options`.
2016-01-30 22:31:10 -08:00
deathcap
89198c62ff
Use minecraft-data for protocol version -> minecraft version
2016-01-30 22:27:36 -08:00
deathcap
66e6f4dd0b
Update to use compatible sync API (createClient)
2016-01-30 22:16:36 -08:00
deathcap
00bf6acea9
Fix unintentional var client declaration
2016-01-30 22:09:25 -08:00
deathcap
9ec6d876ba
Add wait_connect option, to require 'connect_allowed' event before src/client/setProtocol proceeds
...
Intended to allow clients to configure the client object before any data
is sent, specifically, before src/client/setProtocol sends the
set_protocol packet.
2016-01-28 09:49:37 -08:00
deathcap
a53a2977f2
Add dynamic cross-protocol support
2016-01-27 23:28:27 -08:00
Romain Beaumont
a6a673a8c8
Merge pull request #333 from deathcap/m2client
...
Modularization attempt of createClient()
2016-01-27 22:46:26 +01:00
deathcap
c3d86d7674
Add client.connect(port, host) for backwards-compatibility
...
Would like to remove this method because it is hardcoded to dependent on
TCP/IP, but the serverTest uses it. Load tcp_dns as needed.
2016-01-26 01:15:59 -08:00
deathcap
bf5ce9e569
Pass haveCredentials/accessToken between client/caseCorrect and client/encrypt
2016-01-26 00:55:44 -08:00
deathcap
2f60088fdf
Fix missing tcp_dns host option
2016-01-26 00:47:21 -08:00
deathcap
cf5f8c1c4c
Pass options to all src/client/*, for consistency
2016-01-26 00:01:09 -08:00
deathcap
fe327c85e1
Move net.socket() and dns.resolveSrv() into client/net_tcp
...
This has been the trickest to refactor/remodularize, since it used to
modify the Client prototype to augument connect(host, port). This added
a dependence on TCP/IP host/port socketpairs, refactor to add a
'connect' option instead, called with the client instance. Update ping
accordingly, but it has to call connect itself since it does not include
client/caseCorrect, which normally calls connect. Still may be able to
improve further and untangle these interdependencies cleanlier.
2016-01-25 23:57:10 -08:00
deathcap
de36de8496
Break client/caseCorrect dependence on TCP/IP host/port; generalize options.connect(client)
2016-01-25 23:47:23 -08:00
deathcap
9c2112802a
Fix ursa imports
2016-01-25 23:40:35 -08:00
deathcap
34534b2aa6
Move onLogin set state=PLAY to client/play
2016-01-25 23:36:36 -08:00
deathcap
b37dcc4d08
Move onConnect/set_protocol to client/setProtocol
2016-01-25 23:33:58 -08:00
deathcap
821227d73e
Move making a request to get case-correct username before connecting to client/caseCorrect
2016-01-25 23:28:14 -08:00
deathcap
8c4406b4a2
Move keepAlive/checkTimeoutInterval to client/keepalive
2016-01-25 23:24:20 -08:00
deathcap
20e076ebcf
Move onCompressionRequest to client/compress
2016-01-25 23:22:35 -08:00
deathcap
a727829a98
Move onKeepAlive to client/keepalive
2016-01-25 23:19:57 -08:00
deathcap
cbaaeb8eb2
Move onEncryptionKeyRequest to client/encryption
2016-01-25 23:18:32 -08:00
Romain Beaumont
609c4466f7
Merge pull request #325 from deathcap/debug-read
...
Add debug logging for received packet data
2016-01-23 22:04:01 +01:00
deathcap
162a8abb34
Add debug logging for received packet data
2016-01-23 12:10:26 -08:00
Romain Beaumont
fbbfd40bc6
Merge pull request #324 from rom1504/one_uuid
...
use uuid-1345 instead of 3 uuid packages, fix #297
2016-01-22 12:46:44 +01:00
Romain Beaumont
eefb113b4c
use uuid-1345 instead of 3 uuid packages, fix #297
2016-01-22 12:42:04 +01:00
Romain Beaumont
5b8a507d5a
Merge pull request #305 from rom1504/update_to_babel6
...
update to babel6
2016-01-22 11:21:01 +01:00
Romain Beaumont
447eff80dd
Merge pull request #323 from deathcap/disconnect-reason
...
Show disconnect reason in examples
2016-01-22 11:12:32 +01:00
deathcap
4aac85c09a
Show disconnect reason in examples
2016-01-22 00:32:36 -08:00
Romain Beaumont
3f161622f9
update to babel6 and remove some dependencies
2016-01-20 00:50:04 +01:00
Romain Beaumont
16a5c0fc0d
Merge pull request #321 from deathcap/remove-es7
...
Remove experimental ES7 features, use only standard ES6
2016-01-20 00:14:17 +01:00
deathcap
76fca99ac4
Disable ES7 experimental stage 0 features in favor of ES6 standard
2016-01-18 18:17:53 -08:00
deathcap
91a404333e
Remove non-ES6 class field declarations (ES7 stage 1 proposal)
...
ES6 does not have support for class field declarations, although it is
an experimental ES7 proposal:
https://github.com/jeffmo/es-class-fields-and-static-properties
For ES6, move the field/property declarations to the constructors.
2016-01-18 18:17:12 -08:00
Romain Beaumont
3a246d1204
Merge pull request #318 from deathcap/patch-1
...
Remove unused chai dependency
2016-01-18 09:17:09 +01:00
deathcap
60c24a68b7
Remove unused chai dependency
2016-01-17 23:20:03 -08:00
Romain Beaumont
3ba152eba3
add snapshot version in readme
2016-01-13 22:56:13 +01:00
Romain Beaumont
48527cb6ee
requires node >=4
2016-01-13 20:38:29 +01:00
Romain Beaumont
bd7b1a5c9b
Merge pull request #315 from deathcap/circle-node
...
Test on newer version of Node
2016-01-13 20:36:47 +01:00
Romain Beaumont
81d85fe596
Merge pull request #314 from deathcap/update-browser
...
Update browser.js, sync with index.js excluding createClient/createServer
2016-01-13 20:17:28 +01:00
deathcap
f5e521e9cd
Update browser.js, sync with index.js excluding createClient/createServer
2016-01-13 11:07:08 -08:00
deathcap
89a975e200
Test on node v4
2016-01-12 22:16:51 -08:00