websocklib

package
v0.0.0-...-a99fd5a Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 4 Imported by: 0

README

golang-modules/websock

Golang Websocket 모듈화

func Reader

read websocket message

func Reader(conn *websocket.Conn) (string, error)
func Sender

send websocket message

func Sender(conn *websocket.Conn, msg string)
func ServerRun

Websocket server run

func ServerRun(addr string, port int, cb func(conn *websocket.Conn))
Web Server Start

Chrome Web browser (localhost:8000) -> F12 (Console debug)

$ cd golang-modules/websock
$ python -m SimpleHTTPServer
Serving HTTP on 0.0.0.0 port 8000 ...

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Reader

func Reader(conn *websocket.Conn) (string, error)

func Sender

func Sender(conn *websocket.Conn, msg string)

func ServerRun

func ServerRun(addr string, port int, cb func(conn *websocket.Conn))

Types

This section is empty.

Jump to

Keyboard shortcuts

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