From 009f34e436f33041dc6249035aefa1c2a7d409c8 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sat, 5 May 2018 17:39:10 +0200 Subject: [PATCH] fix Store of Client that can be anything, not empty struct --- ws/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ws/controller.go b/ws/controller.go index a671cdb..59d67ed 100644 --- a/ws/controller.go +++ b/ws/controller.go @@ -8,7 +8,7 @@ import ( type Client struct { Protocol string // choosen protocol (Sec-WebSocket-Protocol) Arguments [][]string // URI parameters, index 0 is full URI, then matching groups - Store struct{} // store (for client implementation-specific data) + Store interface{} // store (for client implementation-specific data) } // Represents a websocket controller callback function