Rotur
  • Getting Started
  • Your Connection
    • What is a websocket?
    • Connecting
      • Handshake
      • SetID
      • Link
    • Authentication
      • Get User Data
      • Login
    • Rotur Designations
    • Websocket Commands
      • Global Message (gmsg)
      • Private Message (pmsg)
      • Login to rotur (auth)
  • My Account
    • Rotur Account Objects
      • originOS specific keys
    • Requesting my ofsf storage
    • Rotur Badges
    • Transactions and Taxes
  • Assorted APIs
    • rMail
    • avatars.rotur.dev
      • .banners
    • rotur.dev/auth
    • Keys
  • languages
    • RWL
      • Basics
      • Structure
      • Attributes
        • Text
        • Frame
        • Section
      • Alignments and Anchors
    • RTR
      • Basics
      • Structure
      • Functions
        • Mathematical Functions
        • String Functions
        • Array Functions
        • Object Functions
        • Logical Functions
        • Utility Functions
      • Events
      • Examples
    • RDF
  • Claw
    • What is claw
    • Api Endpoints
      • /feed
      • /post
      • /follow
      • /unfollow
      • /followers
      • /following
      • /profile
      • /delete
      • /rate
      • /following_feed
      • /reply
      • /repost
      • /top_posts
      • /search_posts
      • /search_users
  • Web Standard
    • What is this
  • Addons / Extensions
    • Basic Structure
    • Events
      • onload
      • page_load
      • page_focus
    • API
      • Classes
        • Page
          • (static) .new()
          • .getTitle()
        • URL
          • (static) .new()
          • (static) .parse()
          • .format()
          • .getAsyncData()
          • .getFetchUrl()
          • .getTitle()
    • Commands
      • redirect
      • opentab
    • Variables
      • tab_info
      • page_width / height
      • scroll_x / y
Powered by GitBook
On this page
Edit on GitHub
  1. Your Connection
  2. Connecting

SetID

This command is also largely unchanged in comparison to the cl4 standard, except for one change. you are able to change your username to anything without disconnecting first. The server will make a fake disconnect and reconnect for you and rename you on all other active clients.

{
  "cmd": "setid",
  "val": "", // the username you want other users to know you as
  "listener": "username_cfg" // the listener for your packet
}

You should then recieve these packets from the server

{
  "cmd": "ulist",
  "mode": "set", // overwrite your local userlist
  "val": [ // an array of user objects. These may be updated later to contain more info
    {"username": "ori-EwZWksbrYDBAxziSZwWejSwK2QMMzGZf"}
  ],
  "room": "default"
}
{
  "cmd": "statuscode",
  "code": "I:100 | OK", 
  "code_id": 100, 
  "listener": "username_cfg", // this is the response for your set username packet
  "val": {
    "room": "default", // the room your username was changed in
    "username": "ori-EwZWksbrYDBAxziSZwWejSwK2QMMzGZf" // the value your username is set to
  }
}

Pre-authorised rotur usernames

A pre-authorised rotur username is any username that has a 3 letter designation, then a hyphen, then a string of 32 random letters.

Valid

  • ori-EwZWksbrYDBAxziSZwWejSwK2QMMzGZf

  • rtr-EwZWksbrYDBAxziSZwWejSwK2QMMzGZf

  • wow-EwZWksbrYDBAxziSZwWejSwK2QMMzGZf

Invalid

  • oriEwZWksbrYDBAxziSZwWejSwK2QMMzGZf

  • r-EwZWksbrYDBAxziSZwWejSwK2QMMzGZf

  • hello-EwZWksbrYDBAxziSZwWejSwK2QMMzGZf

You can connect without the 32 characters, but the designation is required to connect otherwise you will be kicked.

PreviousHandshakeNextLink

Last updated 1 month ago