func (s *Socket) sendOrderCanceled(o *Order) error {
	fmt.Printf("Send order canceled message")
	p := &OrderPayload{Order: o}
	m := &Message{MessageType: ORDER_CANCELED, Payload: p}
	if err := s.connection.WriteJSON(&m); err != nil {
		return err
	}

	// fmt.Printf("\nLOG: Sending Order Canceled Message:\n%v\n\n", o)
	return nil
}
// sendOrderCanceledMessage creates an ORDER_CANCELED message and writes it into the websocket connection
sendOrderCanceledMessage creates an ORDER_CANCELED message and writes it into the websocket connection
// sendOrderCanceledMessage creates an ORDER_CANCELED message and writes it into the websocket connection
func (s *Socket) sendOrderCanceled(o *Order) error {
	fmt.Printf("Send order canceled message")
	p := &OrderPayload{Order: o}
	m := &Message{MessageType: ORDER_CANCELED, Payload: p}
	if err := s.connection.WriteJSON(&m); err != nil {
		return err
	}
	return nil
}
func ( s * Socket ) sendOrderCanceled ( o * Order ) error { fmt . Printf ( " " ) p := & OrderPayload { Order : o } m := & Message { MessageType : ORDER_CANCELED , Payload : p } if err := s . connection . WriteJSON ( & m ) ; err != nil { return err } return nil }
sendOrderCanceledMessage creates an ORDER_CANCELED message and writes it into the websocket connection
sendOrderCanceledMessage creates an ORDER_CANCELED message and writes it into the websocket connection
// fmt.Printf("\nLOG: Sending Order Canceled Message:\n%v\n\n", o)