conn

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2016 License: GPL-3.0 Imports: 14 Imported by: 1

Documentation

Overview

Package conn contains connection code

Package conn contains connection code

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAuth

func CheckAuth()

CheckAuth asks the server if the cookied authentication is valid

func Connect

func Connect()

Connect to the socket

func Disconnect

func Disconnect()

Disconnect from the socket

func Login

func Login()

Login sends a request to /auth/login

func Reconnect

func Reconnect()

Reconnect tries to reconnect to the mauIRC server

func Register

func Register()

Register sends a request to /auth/register

func SendMessage

func SendMessage(payload interface{}) bool

SendMessage sends the given struct through the WebSocket

Types

This section is empty.

Jump to

Keyboard shortcuts

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