Universal Script 📌
4.6k Views
50 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?

Early reports

100% say it works · 1 report in the last 2 weeks

Also noticed:

Description

websocket tester, echos your username every 2 seconds

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
#24 this month3 weeks 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 FameUploader2 weeks ago

@voltex ??and who are you omg

0

More universal scripts

See all
Script hub
265.3k
102.3k
Bumped 16 minutes ago
Key System
Script hub
281.5k
916.9k
Bumped 3 hours ago
Key System

Script hub

#21 this week

Verified script badgeAxon Hub 60+ Games & 800+ Features

Script hub
2.1M
704.6k
Bumped 3 hours ago
Key System

Script hub

#5 today

Verified script badgeLumin Hub | #1 | Insta Steal

Universal Script 📌
29.9k
88.2k
Bumped 5 hours ago
Script hub
19.0k
65.5k
Bumped 5 hours ago
Key System
Universal Script 📌
1.8k
6.7k
Bumped 6 hours ago
Key System
Script hub
176
33
Approved 7 hours ago
Paid

Script hub

anmultv hub

Universal Script 📌
153
51
Approved 7 hours ago