An open API service indexing awesome lists of open source software.

https://github.com/vilgefortzz/send-file-via-http

Sending files via http based on client-server
https://github.com/vilgefortzz/send-file-via-http

client-server file-upload go golang http http-client http-server websocket

Last synced: 5 months ago
JSON representation

Sending files via http based on client-server

Awesome Lists containing this project

README

          

# send-file-via-http

Sending files via http based on server-client

Install Gorilla WebSocket:

$ go get github.com/gorilla/websocket

To run the program, start the server with passing arguments:

$ go run server.go -- arg1

- arg1(optional) - host name (e.g. 127.0.0.1)


Next, start the client with passing arguments:

$ go run client.go -- arg1 arg2

- arg1 - name of the file located in send-files directory (e.g. hello.go)

- arg2(optional) - host name (e.g. 127.0.0.1)


To run tests from /tests (server must be running):

$ go test -v