func (s *Socket) sendOrderPlaced(o *Order) error {
	p := &OrderPayload{Order: o}
	m := &Message{MessageType: ORDER_PLACED, Payload: p}

	if err := s.connection.WriteJSON(&m); err != nil {
		return err
	}

	// fmt.Printf("\nLOG. Sending Order Placed Message:\n%v\n\n", o)
	return nil
}
// sendOrderPlacedMessage creates and ORDER_PLACED messages and writes it into the websocket connection
sendOrderPlacedMessage creates and ORDER_PLACED messages and writes it into the websocket connection
// sendOrderPlacedMessage creates and ORDER_PLACED messages and writes it into the websocket connection
func (s *Socket) sendOrderPlaced(o *Order) error {
	p := &OrderPayload{Order: o}
	m := &Message{MessageType: ORDER_PLACED, Payload: p}
	if err := s.connection.WriteJSON(&m); err != nil {
		return err
	}
	return nil
}
func ( s * Socket ) sendOrderPlaced ( o * Order ) error { p := & OrderPayload { Order : o } m := & Message { MessageType : ORDER_PLACED , Payload : p } if err := s . connection . WriteJSON ( & m ) ; err != nil { return err } return nil }
sendOrderPlacedMessage creates and ORDER_PLACED messages and writes it into the websocket connection
sendOrderPlacedMessage creates and ORDER_PLACED messages and writes it into the websocket connection
// fmt.Printf("\nLOG. Sending Order Placed Message:\n%v\n\n", o)