mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-08-06 12:50:43 +08:00
Initial work on the server
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
var Sequence = require('./Sequence');
|
||||
var Util = require('util');
|
||||
var Packets = require('../packets');
|
||||
|
||||
module.exports = Ping;
|
||||
Util.inherits(Ping, Sequence);
|
||||
|
||||
function Ping(callback) {
|
||||
Sequence.call(this, callback);
|
||||
}
|
||||
|
||||
Ping.prototype.start = function() {
|
||||
this.emit('packet', new Packets.ComPingPacket);
|
||||
};
|
||||
Reference in New Issue
Block a user