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