Categorygithub.com/McKoog/my-go-client-pusher
modulepackage
0.0.0-20220802145427-e3c8d249833f
Repository: https://github.com/mckoog/my-go-client-pusher.git
Documentation: pkg.go.dev

# Functions

UnmarshalDataString is a convenience function to unmarshal double-encoded JSON data from a Pusher event.
WithSuccessTimeout returns a SubscribeOption that sets the time that a subscription request will wait for a success response from Pusher before timing out.

# Variables

ErrMissingMe indicates a presence channel was subscribed to, but the pusher server violated the message protocol by not providing a member for the current user.
ErrNotSubscribed is returned by functions that require the channel to be subscribed before being called.
ErrTimedOut is the error returned when there is a timeout waiting for a subscription confirmation from Pusher.

# Structs

An AuthError is returned when a non-200 status code is returned in a channel subscription authentication request.
Client represents a Pusher websocket client.
Event represents an event sent to or received from a Pusher connection.
EventError represents an error event received from Pusher.
Member represents a channel member.

# Interfaces

Channel represents a subscription to a Pusher channel.
PresenceChannel provides information about the users that are currently subscribed.

# Type aliases

SubscribeOption is a configuration option for subscribing to a channel.