GamendWeb.ChannelPush (gamend_web v1.0.1215)

Copy Markdown View Source

Format-aware channel push.

Sockets connected with ?format=protobuf receive events with a protobuf mapping (see GamendWeb.EventCodec) as binary frames; everything else — including all traffic on default JSON sockets — is pushed as JSON.

Summary

Functions

push_event(socket, event, payload)