Railgun

if it ain't broke, we'll break it

User Tools

Site Tools


sockchat:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
sockchat:start [2025/02/04 19:28] – created flashsockchat:start [2025/04/14 00:29] (current) – deprecat flash
Line 1: Line 1:
 ====== Sock Chat Protocol Information ====== ====== Sock Chat Protocol Information ======
 +
 +:!: This document is being replaced, go to [[:sockchat|Sock Chat Protocol Documentation]] for the new version of this document. :!:
  
 The Sock Chat protocol operates on a websocket in text mode. Messages sent between the client and server are a series of concatenated strings delimited by the vertical tab character, represented in most languages by the escape sequence ''%%\t%%'' and defined in ASCII as ''%%0x09%%''. The first string in this concatenation must be the packet identifier. The Sock Chat protocol operates on a websocket in text mode. Messages sent between the client and server are a series of concatenated strings delimited by the vertical tab character, represented in most languages by the escape sequence ''%%\t%%'' and defined in ASCII as ''%%0x09%%''. The first string in this concatenation must be the packet identifier.
Line 45: Line 47:
   * Username should appear using a **bold** font.   * Username should appear using a **bold** font.
   * Username should appear using a //cursive// font.   * Username should appear using a //cursive// font.
-  * Username should appear <html><u></html>underlined<html></u></html>.+  * Username should appear __underlined__.
   * A colon ''%%:%%'' should be displayed between the username and the message.   * A colon ''%%:%%'' should be displayed between the username and the message.
   * The message was sent privately, directly to the current user.   * The message was sent privately, directly to the current user.
Line 64: Line 66:
 |  ''%%int%%''   |Indicates whether the user can create channel. If ''%%0%%'' the user cannot create channels, if ''%%1%%'' the user can create channels but they are to disappear when all users have left it and if ''%%2%%'' the user can create channels that permanently stay in the channel assortment.| |  ''%%int%%''   |Indicates whether the user can create channel. If ''%%0%%'' the user cannot create channels, if ''%%1%%'' the user can create channels but they are to disappear when all users have left it and if ''%%2%%'' the user can create channels that permanently stay in the channel assortment.|
  
-===== Client Packets =====+===== Client to Server (C2S) Packets =====
  
 These are the packets sent from the client to the server. These are the packets sent from the client to the server.
Line 108: Line 110:
 |  ''%%string%%''  |Message text, cannot contain a tab character ''%%\t%%''.| |  ''%%string%%''  |Message text, cannot contain a tab character ''%%\t%%''.|
  
-===== Server Packets =====+===== Server to Client (S2C) Packets =====
  
 These are the packets sent from the server to the client. These are the packets sent from the server to the client.
Line 393: Line 395:
 == Arguments == == Arguments ==
  
-  * ''%%string%%'': HTML with the information on the users with the following format: “<html><code></html><a href=”javascript:void(0);” onclick=“Chat.SendMessageWrapper(‘/unban’+ this.innerHTML);”>{0}</a><html></code></html>” where {0} is the username of the banned user or the banned IP address. The set is separated by “<html><code></html><html></code></html>”.+  * ''%%string%%'': HTML with the information on the users with the following format: “''%%<a href=”javascript:void(0);” onclick=“Chat.SendMessageWrapper(‘/unban’+ this.innerHTML);”>{0}</a>%%''” where {0} is the username of the banned user or the banned IP address. The set is separated by “''%%%%''”.
  
 === who: List of online users === === who: List of online users ===
Line 401: Line 403:
 == Arguments == == Arguments ==
  
-  * ''%%string%%'': HTML with the information on the users with the following format: “<html><code></html><a href=”javascript:void(0);” onclick=“UI.InsertChatText(this.innerHTML);”>{0}</a><html></code></html>” where {0} is the username of a user. The current online user is highlighted with “<html><code></html> style=”font-weight: bold;“<html></code></html>” before the closing > of the opening <a> tag. The set is separated by “<html><code></html><html></code></html>”.+  * ''%%string%%'': HTML with the information on the users with the following format: “''%%<a href=”javascript:void(0);” onclick=“UI.InsertChatText(this.innerHTML);”>{0}</a>%%''” where {0} is the username of a user. The current online user is highlighted with “''%% style=”font-weight: bold;“%%''” before the closing > of the opening <a> tag. The set is separated by “''%%%%''”.
  
 === whochan: List of users in a channel. === === whochan: List of users in a channel. ===
Line 409: Line 411:
 == Arguments == == Arguments ==
  
-  * ''%%string%%'': HTML with the information on the users with the following format: “<html><code></html><a href=”javascript:void(0);” onclick=“UI.InsertChatText(this.innerHTML);”>{0}</a><html></code></html>” where {0} is the username of a user. The current online user is highlighted with “<html><code></html> style=”font-weight: bold;“<html></code></html>” before the closing > of the opening <a> tag. The set is separated by “<html><code></html><html></code></html>+  * ''%%string%%'': HTML with the information on the users with the following format: “''%%<a href=”javascript:void(0);” onclick=“UI.InsertChatText(this.innerHTML);”>{0}</a>%%''” where {0} is the username of a user. The current online user is highlighted with “''%% style=”font-weight: bold;“%%''” before the closing > of the opening <a> tag. The set is separated by “''%%%%''
  
 === join: User connected === === join: User connected ===
Line 661: Line 663:
 === Format === === Format ===
  
-<code> +  /afk [reason?]
-/afk [reason?] +
-</code>+
  
 ==== /nick: Change nickname ==== ==== /nick: Change nickname ====
Line 671: Line 671:
 === Format === === Format ===
  
-<code> +  /nick [name?]
-/nick [name?] +
-</code>+
  
 === Responses === === Responses ===
Line 687: Line 685:
 === Format === === Format ===
  
-<code> +  /msg [username] [message]
-/msg [username] [message] +
-</code>+
  
 === Aliases === === Aliases ===
Line 706: Line 702:
 === Format === === Format ===
  
-<code> +  /me [message]
-/me [message] +
-</code>+
  
 === Aliases === === Aliases ===
Line 720: Line 714:
 === Format === === Format ===
  
-<code> +  /who [channel?]
-/who [channel?] +
-</code>+
  
 === Responses === === Responses ===
Line 737: Line 729:
 === Format === === Format ===
  
-<code> +  /delete [channel name or message id]
-/delete [channel name or message id] +
-</code>+
  
 === Responses === === Responses ===
Line 751: Line 741:
 === Format === === Format ===
  
-<code> +  /join [channel] [password?]
-/join [channel] [password?] +
-</code>+
  
 === Responses === === Responses ===
Line 768: Line 756:
 === Format === === Format ===
  
-<code> +  /leave [channel]
-/leave [channel] +
-</code>+
  
 === Responses === === Responses ===
Line 782: Line 768:
 === Format === === Format ===
  
-<code> +  /create [rank?] [name...]
-/create [rank?] [name...] +
-</code>+
  
 If the first argument is numeric, it is taken as the minimum required rank to join the channel. All further arguments are glued with underscores to create the channel name. If the first argument is numeric, it is taken as the minimum required rank to join the channel. All further arguments are glued with underscores to create the channel name.
Line 803: Line 787:
 === Format === === Format ===
  
-<code> +  /delchan [name]
-/delchan [name] +
-</code>+
  
 === Responses === === Responses ===
Line 820: Line 802:
 === Format === === Format ===
  
-<code> +  /password [password?]
-/password [password?] +
-</code>+
  
 === Aliases === === Aliases ===
Line 839: Line 819:
 === Format === === Format ===
  
-<code> +  /rank [rank]
-/rank [rank] +
-</code>+
  
 === Aliases === === Aliases ===
Line 860: Line 838:
 === Format === === Format ===
  
-<code> +  /say [message]
-/say [message] +
-</code>+
  
 === Responses === === Responses ===
Line 875: Line 851:
 === Format === === Format ===
  
-<code> +  /delmsg [message id]
-/delmsg [message id] +
-</code>+
  
 === Responses === === Responses ===
Line 891: Line 865:
 === Format === === Format ===
  
-<code> +  /kick [username] [time?]
-/kick [username] [time?] +
-</code>+
  
 === Responses === === Responses ===
Line 908: Line 880:
 === Format === === Format ===
  
-<code> +  /ban [user] [time?]
-/ban [user] [time?] +
-</code>+
  
 === Responses === === Responses ===
Line 925: Line 895:
 === Format === === Format ===
  
-<code> +  /pardon [user]
-/pardon [user] +
-</code>+
  
 ==== Aliases ==== ==== Aliases ====
Line 945: Line 913:
 === Format === === Format ===
  
-<code> +  /pardonip [address]
-/pardonip [address] +
-</code>+
  
 === Aliases === === Aliases ===
Line 965: Line 931:
 === Format === === Format ===
  
-<code> +  /bans
-/bans +
-</code>+
  
 === Aliases === === Aliases ===
Line 984: Line 948:
 === Format === === Format ===
  
-<code> +  /ip [username]
-/ip [username] +
-</code>+
  
 === Aliases === === Aliases ===
sockchat/start.1738697296.txt.gz · Last modified: 2025/02/04 19:28 by flash