From 55e4bde812f660cf48bfdf73b11f6df2b2649908 Mon Sep 17 00:00:00 2001 From: Protocol Date: Sat, 10 Nov 2012 13:43:16 +0000 Subject: [PATCH] Update MediaWiki page '135 Protocol' --- 135-Protocol.mediawiki | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/135-Protocol.mediawiki b/135-Protocol.mediawiki index f2bff26..7b314a4 100644 --- a/135-Protocol.mediawiki +++ b/135-Protocol.mediawiki @@ -210,6 +210,12 @@ Some 135 packets are documented ahead. First you will find the packets' body, th (:require [jagex.Util]) (:use [jagex.client.SocketStream])) +;; Opcode: 1 +(defn disconnect [stream] + (doto stream + (.begin-packet1) + (.flush))) + ;; Opcode: 2 (defn newplayer [stream] (doto stream @@ -284,6 +290,11 @@ Some 135 packets are documented ahead. First you will find the packets' body, th ! Payload ! Description |- +! Disconnect +| 1 || +* None +| Sends the disconnect packet. +|- ! Newplayer (Registration) | 2 || * Short - Unknown