Skip to content

Save websocket data to file, and replay from file to websocket

Notifications You must be signed in to change notification settings

VladislavSournine/saveAndReplay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

saveAndReplay

Save websocket data to file, and replay from file to websocket

This code first calls the saveWebsocketData function to save WebSocket data to a file. Then it reads the data from the file using a scanner, sends each message to the WebSocket server using conn.WriteMessage, and adds a delay between messages using time.Sleep. Note that this code assumes that the messages in the input file are in the same format as the messages that the server expects. If the message format needs to be modified, the code should be adjusted accordingly.

About

Save websocket data to file, and replay from file to websocket

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages