I currently have a websocket chat program I figured out how to intercept the traffic locally using Winsock and it gives me a somewhat encrypted hexadecimal message. I would like to write a
java program that resends the same message to the server.
I get a connection to the host:port but my output stream doesn't seem to be working the server does not seem to register the packet. I also had to comment out the inputstream because it continues to error out

. I just need to send the hex information to the server which is the exact same information I sent to it and copied from Winsock. Thanks for any help or tips!!