send-file-via-websocket-master/

directory
v0.0.0-...-8fbde1e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2020 License: MIT

README

send-file-via-websocket

Sending files via websocket 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

Directories

Path Synopsis
You can edit this code! Click here and start typing.
You can edit this code! Click here and start typing.
You can edit this code! Click here and start typing.
You can edit this code! Click here and start typing.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL