deathcap
39b7199ec6
Add 'stream' option to client/tcp_dns, alternative to host,port for TCP
2016-01-31 15:33:06 -08:00
deathcap
834170689e
Remove createClientStream
2016-01-31 15:27:38 -08:00
deathcap
dccb9cef58
Merge branch 'master' into clientstream
2016-01-31 15:26:26 -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
deathcap
dd1d647d0e
Remove stream option, since callers can simply use client.setSocket()
2016-01-18 13:39:22 -08:00
deathcap
9a781ca662
Refactor createClient to use createClientStream
2016-01-18 13:13:20 -08:00
deathcap
b33dd88ac2
Make stream option optional, caller can setSocket() later
2016-01-18 13:02:39 -08:00
deathcap
73d69e66d7
Add noPacketFramer option to createClientStream()
2016-01-18 01:42:35 -08:00
deathcap
6125fb7303
createClientStream() takes a stream
2016-01-18 01:42:29 -08:00
deathcap
2483e6fba0
Copy createClientStream.js from createClient.js
2016-01-18 00:29:24 -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
Romain Beaumont
43d56de2f6
fix cli options doc proxy example, fix #313
2016-01-07 01:55:28 +01:00
Romain Beaumont
708fb963f6
update flying-squid and mineflayer urls (which both moved to PrismarineJS)
2016-01-06 15:26:47 +01:00
Romain Beaumont
153eb70ba3
dev iteration
2016-01-04 20:58:35 +01:00
Romain Beaumont
1499509ed6
Release 0.16.6
2016-01-04 20:57:16 +01:00
Romain Beaumont
dd06a7075e
fix small bug that made the latency be NaN sometimes
2016-01-04 20:44:28 +01:00
Romain Beaumont
78c3820de0
prepare for next dev iteration
2015-12-22 00:17:13 +01:00
Romain Beaumont
10e6fff0c6
Release 0.16.5
2015-12-22 00:16:21 +01:00