Skip to content

0zBug/AnimSocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 

Repository files navigation

AnimSocket

Alternative to websockets that communicates with animations.

Documentation

Connect

Connects to the channel specified

<Object> AnimSocket:Connect(<string> Channel)

Send

Sends the message to all connected clients

<void> Channel:Send(<string> Message)

Close

Deletes the channel and fires Channel.OnClose

<void> Channel:Close(<void>)

OnMessage

Fired when a message is sent in the connected channel

<void> Channel.OnMessage:Connect(function(<Instance> Player, <string> Message))

OnClose

Fired when the Close function is called

<void> Channel.OnClose = function(<void>)

Example

local AnimSocket =  loadstring(game:HttpGet("https://raw.github.com/0zBug/AnimSocket/main/main.lua"))()

local Channel = AnimSocket.Connect("ChannelName")

Channel.OnMessage:Connect(function(Player, Message)
	print(Player, Message) --> 4DBug, "Hello, World!"
end)

Channel:Send("Hello, World!")

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages