Universal Script 📌
4.6k Views
51 Executions

websocket testing

Universal Script 📌
Imperial
Imperial
Verified Badge
Verified User
Hall of Fame10M executions
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

websocket tester, echos your username every 2 seconds

Updates

  1. Script edited: Update script

  2. Script edited: Create script

View Raw
local WebSocket = WebSocket.connect("wss://echo.websocket.org") -- Specify your WebSocket URL here.

print("Connected.")

WebSocket.OnMessage:Connect(function(Msg)
    print("Message: ")
    print(Msg)
end)

local Ctr = 1
while wait(1) do
    print("Sending your username...")
    WebSocket:Send(game.Players.LocalPlayer.Name)
    Ctr = Ctr + 1

    if Ctr == 5 then 
        print("Closing connection...")
        WebSocket:Close() -- Close the websocket when you are done! (this is done implicitly on teleports aswell)
        do return end
    end
end



Comments

4
Log in to join the conversation. Login
BrandonJayBRX's profile picture
BrandonJayBRX2 years ago(edited)

Waht is this imperial?

1
Shadow_guy's profile picture
Shadow_guy2 years ago(edited)

G g

1
voltex's profile picture
voltexKeyless Creator
Keyless Script Creator Badge
Keyless Script Creator
1 month ago

Script does not serve a purpose for most (all) people on scriptblox, consider unlisting or privating the script.

0
Imperial's profile picture
ImperialVerified
Keyless Script Creator Badge
Keyless Script Creator
Verified Badge
Verified User
Hall of FameUploader1 month ago

@voltex ??and who are you omg

1

More universal scripts

See all
Universal Script 📌
48.4k
46.5k
Bumped 59 minutes ago
Universal Script 📌
1.4k
1.3k
Bumped 4 hours ago
Universal Script 📌
4.2k
56.4k
Bumped 5 hours ago
Universal Script 📌
7.1k
71.4k
Bumped 5 hours ago
Script hub
3.5M
1.2M
Bumped 6 hours ago
Key System
Universal Script 📌
5.0k
92.0k
Bumped 11 hours ago